diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/tests/org/anarres/cpp/ErrorTestCase.java | 2 | ||||
-rw-r--r-- | src/tests/org/anarres/cpp/LexerSourceTestCase.java | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/tests/org/anarres/cpp/ErrorTestCase.java b/src/tests/org/anarres/cpp/ErrorTestCase.java index 24bdf61..cec1dc7 100644 --- a/src/tests/org/anarres/cpp/ErrorTestCase.java +++ b/src/tests/org/anarres/cpp/ErrorTestCase.java @@ -60,7 +60,7 @@ public class ErrorTestCase extends BaseTestCase { public void testErrors() throws Exception { testError("\""); testError("'"); - testError("''"); + // testError("''"); } } diff --git a/src/tests/org/anarres/cpp/LexerSourceTestCase.java b/src/tests/org/anarres/cpp/LexerSourceTestCase.java index 205176b..ac3f61f 100644 --- a/src/tests/org/anarres/cpp/LexerSourceTestCase.java +++ b/src/tests/org/anarres/cpp/LexerSourceTestCase.java @@ -69,14 +69,16 @@ public class LexerSourceTestCase extends BaseTestCase implements Test { CHARACTER, WHITESPACE, CHARACTER, WHITESPACE, CHARACTER, WHITESPACE, - INVALID, WHITESPACE, - INVALID); + SQSTRING, WHITESPACE, + SQSTRING); testLexerSource("1i1I1l1L1ui1ul", NUMBER, NUMBER, NUMBER, NUMBER, NUMBER, NUMBER); + testLexerSource("'' 'x' 'xx'", + SQSTRING, WHITESPACE, CHARACTER, WHITESPACE, SQSTRING); } } |