Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8177dd1

Browse files
add test cases for 71
1 parent72762dd commit8177dd1

File tree

1 file changed

+26
-16
lines changed

1 file changed

+26
-16
lines changed

‎src/test/java/com/fishercoder/_71Test.java

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,30 @@
77
importstaticorg.junit.Assert.assertEquals;
88

99
publicclass_71Test {
10-
privatestatic_71.Solution1solution1;
11-
12-
@BeforeClass
13-
publicstaticvoidsetup() {
14-
solution1 =new_71.Solution1();
15-
}
16-
17-
@Test
18-
publicvoidtest1() {
19-
assertEquals("/home",solution1.simplifyPath("/home/"));
20-
}
21-
22-
@Test
23-
publicvoidtest2() {
24-
assertEquals("/c",solution1.simplifyPath("/a/./b/../../c/"));
25-
}
10+
privatestatic_71.Solution1solution1;
11+
12+
@BeforeClass
13+
publicstaticvoidsetup() {
14+
solution1 =new_71.Solution1();
15+
}
16+
17+
@Test
18+
publicvoidtest1() {
19+
assertEquals("/home",solution1.simplifyPath("/home/"));
20+
}
21+
22+
@Test
23+
publicvoidtest2() {
24+
assertEquals("/c",solution1.simplifyPath("/a/./b/../../c/"));
25+
}
26+
27+
@Test
28+
publicvoidtest3() {
29+
assertEquals("/a/b/c",solution1.simplifyPath("/a//b////c/d//././/.."));
30+
}
31+
32+
@Test
33+
publicvoidtest4() {
34+
assertEquals("/",solution1.simplifyPath("/."));
35+
}
2636
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp