Skip to content

Commit

Permalink
fix: Added @ignore to the tests (#681)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerSimeon authored Oct 20, 2024
1 parent 11b23c5 commit f39ccf3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion exercises/practice/knapsack/src/test/kotlin/KnapsackTest.kt
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
import org.junit.Test
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.Ignore

class KnapsackTest {

@Test
fun `no items`() = assertEquals(0, knapsack(100, listOf()))

@Ignore
@Test
fun `one item, too heavy`() {
val items = listOf(Item(100, 1))
assertEquals(0, knapsack(10, items))
}

@Ignore
@Test
fun `five items (cannot be greedy by weight)`() {
val items = listOf(
Expand All @@ -24,6 +27,7 @@ class KnapsackTest {
assertEquals(21, knapsack(10, items))
}

@Ignore
@Test
fun `five items (cannot be greedy by value)`() {
val items = listOf(
Expand All @@ -36,6 +40,7 @@ class KnapsackTest {
assertEquals(80, knapsack(10, items))
}

@Ignore
@Test
fun `example knapsack`() {
val items = listOf(
Expand All @@ -47,6 +52,7 @@ class KnapsackTest {
assertEquals(90, knapsack(10, items))
}

@Ignore
@Test
fun `8 items`() {
val items = listOf(
Expand All @@ -62,6 +68,7 @@ class KnapsackTest {
assertEquals(900, knapsack(104, items))
}

@Ignore
@Test
fun `15 items`() {
val items = listOf(
Expand Down

0 comments on commit f39ccf3

Please sign in to comment.