Skip to content

Commit

Permalink
sum-of-multiples: update to v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
stkent committed Oct 24, 2017
1 parent 07f29b1 commit 40b79e0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions exercises/sum-of-multiples/.meta/version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.1.0
14 changes: 7 additions & 7 deletions exercises/sum-of-multiples/src/test/kotlin/SumOfMultiplesTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ class SumOfMultiplesTest {

@Test
@Ignore
fun `multiples of 3 or 5 up to 10`() {
assertEquals(23, SumOfMultiples.sum(setOf(3, 5), 10))
fun `multiples of 3 up to 7`() {
assertEquals(9, SumOfMultiples.sum(setOf(3), 7))
}

@Test
@Ignore
fun `multiples of 3 or 5 up to 20`() {
assertEquals(78, SumOfMultiples.sum(setOf(3, 5), 20))
fun `multiples of 3 or 5 up to 10`() {
assertEquals(23, SumOfMultiples.sum(setOf(3, 5), 10))
}

@Test
Expand All @@ -36,7 +36,7 @@ class SumOfMultiplesTest {
@Test
@Ignore
fun `multiples of 3 or 5 up to 1000`() {
assertEquals(233_168, SumOfMultiples.sum(setOf(3, 5), 1000))
assertEquals(233168, SumOfMultiples.sum(setOf(3, 5), 1000))
}

@Test
Expand Down Expand Up @@ -66,7 +66,7 @@ class SumOfMultiplesTest {
@Test
@Ignore
fun `multiples of 43 or 47 up to 10000`() {
assertEquals(2_203_160, SumOfMultiples.sum(setOf(43, 47), 10_000))
assertEquals(2203160, SumOfMultiples.sum(setOf(43, 47), 10000))
}

@Test
Expand All @@ -78,7 +78,7 @@ class SumOfMultiplesTest {
@Test
@Ignore
fun `multiples of an empty set up to 10000`() {
assertEquals(0, SumOfMultiples.sum(emptySet(), 10_000))
assertEquals(0, SumOfMultiples.sum(emptySet(), 10000))
}

}

0 comments on commit 40b79e0

Please sign in to comment.