Skip to content

Commit 5aac39d

Browse files
committed
测试
1 parent 8a92915 commit 5aac39d

File tree

3 files changed

+34
-17
lines changed

3 files changed

+34
-17
lines changed

design-skiplist/index.kt

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
package masx200.leetcode_test.design_skiplist
2-
3-
class Skiplist() {
4-
5-
fun search(target: Int): Boolean {
6-
7-
}
8-
9-
fun add(num: Int) {
10-
11-
}
12-
13-
fun erase(num: Int): Boolean {
14-
15-
}
16-
17-
}
1+
//package masx200.leetcode_test.design_skiplist
2+
//
3+
//class Skiplist() {
4+
//
5+
// fun search(target: Int): Boolean {
6+
//
7+
// }
8+
//
9+
// fun add(num: Int) {
10+
//
11+
// }
12+
//
13+
// fun erase(num: Int): Boolean {
14+
//
15+
// }
16+
//
17+
//}

leetcode-test.iml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@
88
<orderEntry type="inheritedJdk" />
99
<orderEntry type="sourceFolder" forTests="false" />
1010
<orderEntry type="library" exported="" name="leetcode-test" level="project" />
11+
<orderEntry type="library" exported="" name="KotlinJavaRuntime" level="project" />
12+
<orderEntry type="library" name="junit.jupiter" level="project" />
1113
</component>
1214
</module>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package masx200.leetcode_test.add_two_integers
2+
3+
import org.junit.jupiter.api.Assertions.*
4+
5+
internal class SolutionTest {
6+
7+
@org.junit.jupiter.api.Test
8+
fun sum() {
9+
assertEquals(Solution().sum(111,555),666)
10+
11+
assertNotEquals(Solution().sum(111,555),6626)
12+
assertEquals(Solution().sum(1111,555),1666)
13+
println("masx200.leetcode_test.add_two_integers")
14+
}
15+
}

0 commit comments

Comments
 (0)