Skip to content

Commit f807716

Browse files
committed
186 (2) update tests
1 parent 66a51b2 commit f807716

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
public void reverseWords(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+
public void Test3() {
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+
public void Test3() {
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy