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

Commitf807716

Browse files
committed
186 (2) update tests
1 parent66a51b2 commitf807716

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

‎src/_186_ReverseWordsInAStringII/Practice.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public class Practice {
2121

2222
publicvoidreverseWords(char[]s) {
2323
// TODO Auto-generated method stub
24-
2524
}
2625

2726
}

‎test/_186_ReverseWordsInAStringII/PracticeTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,12 @@ public void Test2() {
4242
assertArrayEquals(expecteds,s);
4343
}
4444

45+
@Test
46+
publicvoidTest3() {
47+
char[]s ="the sky".toCharArray();
48+
solution.reverseWords(s);
49+
char[]expecteds ="sky the".toCharArray();
50+
assertArrayEquals(expecteds,s);
51+
}
52+
4553
}

‎test/_186_ReverseWordsInAStringII/SolutionTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,12 @@ public void Test2() {
4242
assertArrayEquals(expecteds,s);
4343
}
4444

45+
@Test
46+
publicvoidTest3() {
47+
char[]s ="the sky".toCharArray();
48+
solution.reverseWords(s);
49+
char[]expecteds ="sky the".toCharArray();
50+
assertArrayEquals(expecteds,s);
51+
}
52+
4553
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp