diff options
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/syntax/LexerTest.java')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/syntax/LexerTest.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/syntax/LexerTest.java b/src/test/java/com/google/devtools/build/lib/syntax/LexerTest.java index 0fd91df959..0417074abc 100644 --- a/src/test/java/com/google/devtools/build/lib/syntax/LexerTest.java +++ b/src/test/java/com/google/devtools/build/lib/syntax/LexerTest.java @@ -356,6 +356,12 @@ public class LexerTest { } @Test + public void testIndentationWithTab() throws Exception { + tokens("def x():\n\tpass"); + assertThat(lastError.toString()).contains("Tabulations are not allowed"); + } + + @Test public void testIndentationWithCrLf() throws Exception { assertThat(values(tokens("1\r\n 2\r\n"))) .isEqualTo("INT(1) NEWLINE INDENT INT(2) NEWLINE OUTDENT NEWLINE EOF"); |