Skip to content

Commit

Permalink
lexer test for tab after key (c7b75c2, nette-intellij#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
juzna committed May 11, 2013
1 parent e1b4b03 commit 91a9774
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/test/java/cz/juzna/intellij/neon/lexer/LexerTest.java
Expand Up @@ -70,6 +70,21 @@ public void testSimple() throws Exception {
});
}

@Test
public void testTabAfterKey() throws Exception {
doTest("name: \t'Jan'\nsurname:\t \t 'Dolecek'", new Pair[] {
Pair.of(NEON_LITERAL, "name"),
Pair.of(NEON_COLON, ":"),
Pair.of(NEON_WHITESPACE, " \t"),
Pair.of(NEON_STRING, "'Jan'"),
Pair.of(NEON_INDENT, "\n"),
Pair.of(NEON_LITERAL, "surname"),
Pair.of(NEON_COLON, ":"),
Pair.of(NEON_WHITESPACE, "\t \t "),
Pair.of(NEON_STRING, "'Dolecek'"),
});
}

@Test
public void test01() throws Exception {
doTestFromFile();
Expand Down

0 comments on commit 91a9774

Please sign in to comment.