Skip to content
This repository was archived by the owner on Jan 20, 2023. It is now read-only.

Commit 7b2b65f

Browse files
author
wrongwrong
committed
isEmptyのテストを追加
1 parent b8da1cb commit 7b2b65f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/test/kotlin/com/mapk/fastkfunction/argumentbucket/ArgumentBucketTest.kt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package com.mapk.fastkfunction.argumentbucket
22

33
import org.junit.jupiter.api.Assertions.assertEquals
4+
import org.junit.jupiter.api.Assertions.assertFalse
45
import org.junit.jupiter.api.Assertions.assertNull
56
import org.junit.jupiter.api.Assertions.assertTrue
67
import org.junit.jupiter.api.Nested
@@ -93,4 +94,13 @@ private class ArgumentBucketTest {
9394
assertEquals(it.key.index, (it.value as Number).toInt())
9495
}
9596
}
97+
98+
@Test
99+
fun isEmptyTest() {
100+
assertTrue(bucket.isEmpty())
101+
102+
bucket[0] = 0.toShort()
103+
104+
assertFalse(bucket.isEmpty())
105+
}
96106
}

0 commit comments

Comments
 (0)