From f39ccf3b86ad0a3022f5197b96a4a4fdd2220772 Mon Sep 17 00:00:00 2001 From: "Simeon L." <78266888+DerSimeon@users.noreply.github.com> Date: Sun, 20 Oct 2024 02:55:05 +0200 Subject: [PATCH] fix: Added @Ignore to the tests (#681) --- .../practice/knapsack/src/test/kotlin/KnapsackTest.kt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/exercises/practice/knapsack/src/test/kotlin/KnapsackTest.kt b/exercises/practice/knapsack/src/test/kotlin/KnapsackTest.kt index 49955eb9..9c2e61ae 100644 --- a/exercises/practice/knapsack/src/test/kotlin/KnapsackTest.kt +++ b/exercises/practice/knapsack/src/test/kotlin/KnapsackTest.kt @@ -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( @@ -24,6 +27,7 @@ class KnapsackTest { assertEquals(21, knapsack(10, items)) } + @Ignore @Test fun `five items (cannot be greedy by value)`() { val items = listOf( @@ -36,6 +40,7 @@ class KnapsackTest { assertEquals(80, knapsack(10, items)) } + @Ignore @Test fun `example knapsack`() { val items = listOf( @@ -47,6 +52,7 @@ class KnapsackTest { assertEquals(90, knapsack(10, items)) } + @Ignore @Test fun `8 items`() { val items = listOf( @@ -62,6 +68,7 @@ class KnapsackTest { assertEquals(900, knapsack(104, items)) } + @Ignore @Test fun `15 items`() { val items = listOf(