Skip to content

Commit 415dc7a

Browse files
committed
Add tests for stripIndent
1 parent aafd3e9 commit 415dc7a

File tree

1 file changed

+4
-0
lines changed
  • user/test-super/com/google/gwt/emultest/super/com/google/gwt/emultest/java17/lang

1 file changed

+4
-0
lines changed

user/test-super/com/google/gwt/emultest/super/com/google/gwt/emultest/java17/lang/StringTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,16 @@ public void testStripIndent() {
5858
assertEquals("x", hideFromCompiler("x").stripIndent());
5959
assertEquals("x", hideFromCompiler(" x").stripIndent());
6060
assertEquals("x\n", hideFromCompiler("x\r\n").stripIndent());
61+
assertEquals("x\n", hideFromCompiler(" x\n ").stripIndent());
62+
assertEquals(" x\n", hideFromCompiler(" x\n ").stripIndent());
63+
assertEquals(" x\n", hideFromCompiler(" x\n").stripIndent());
6164
assertEquals("x\ny", hideFromCompiler(" x\n y").stripIndent());
6265
assertEquals("x\ny", hideFromCompiler(" x\r\n y").stripIndent());
6366
assertEquals(" x\ny", hideFromCompiler(" x\n y").stripIndent());
6467
assertEquals("x\n y", hideFromCompiler(" x\n y").stripIndent());
6568
assertEquals("x\n\ny", hideFromCompiler(" x\n \n y").stripIndent());
6669
assertEquals(" x\ny", hideFromCompiler("\t x\r\n y").stripIndent());
70+
assertEquals("x\n\ny", hideFromCompiler(" x\n\n y").stripIndent());
6771
}
6872

6973
public void testTranslateEscapes() {

0 commit comments

Comments
 (0)