Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Added @Ignore to the tests #681

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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