summaryrefslogtreecommitdiffstats
path: root/src/tests/org/anarres/cpp/LexerSourceTestCase.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/org/anarres/cpp/LexerSourceTestCase.java')
-rw-r--r--src/tests/org/anarres/cpp/LexerSourceTestCase.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/tests/org/anarres/cpp/LexerSourceTestCase.java b/src/tests/org/anarres/cpp/LexerSourceTestCase.java
index 7fa788c..828ee9c 100644
--- a/src/tests/org/anarres/cpp/LexerSourceTestCase.java
+++ b/src/tests/org/anarres/cpp/LexerSourceTestCase.java
@@ -60,6 +60,22 @@ public class LexerSourceTestCase extends BaseTestCase implements Test {
XOR_EQ, WHITESPACE,
IDENTIFIER);
+ testLexerSource("/**/", CCOMMENT);
+ testLexerSource("/** ** **/", CCOMMENT);
+ testLexerSource("//* ** **/", CPPCOMMENT);
+ testLexerSource("'\\r' '\\xf' '\\xff' 'x' 'aa' ''",
+ CHARACTER, WHITESPACE,
+ CHARACTER, WHITESPACE,
+ CHARACTER, WHITESPACE,
+ CHARACTER, WHITESPACE,
+ INVALID, WHITESPACE,
+ INVALID);
+
+ testLexerSource("1i1I1l1L1ui1ul",
+ INTEGER, INTEGER,
+ INTEGER, INTEGER,
+ INTEGER, INTEGER);
+
}
}