File tree Expand file tree Collapse file tree 3 files changed +34
-17
lines changed
masx200/leetcode_test/add_two_integers Expand file tree Collapse file tree 3 files changed +34
-17
lines changed Original file line number Diff line number Diff line change 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
+ // }
Original file line number Diff line number Diff line change 8
8
<orderEntry type =" inheritedJdk" />
9
9
<orderEntry type =" sourceFolder" forTests =" false" />
10
10
<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" />
11
13
</component >
12
14
</module >
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments