diff options
author | Shevek <[email protected]> | 2012-09-04 01:04:33 -0700 |
---|---|---|
committer | Shevek <[email protected]> | 2012-09-04 01:04:33 -0700 |
commit | f44f568b98a8f909ff5235a9501d102d0f9d9c0d (patch) | |
tree | 8cbfe5e1997ca7157c0e615053c91a17b8644c1b /src/tests/org/anarres/cpp | |
parent | 83c866c1ecdbb701a48f57d7eb104a0d9d156bc6 (diff) |
Test cases for single-quoted string.
Diffstat (limited to 'src/tests/org/anarres/cpp')
-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); } } |