diff options
author | Shevek <[email protected]> | 2008-06-13 21:56:55 +0000 |
---|---|---|
committer | Shevek <[email protected]> | 2008-06-13 21:56:55 +0000 |
commit | 0e479d174065605b32892be1a7fc5f789ea2e255 (patch) | |
tree | 966ad37c64a70cdab74f82226f1225bbb464f044 /src/tests | |
parent | 282706bd6ddf2d2b6279683ab65c5c5b4df92046 (diff) |
extend testing a bit
Diffstat (limited to 'src/tests')
-rw-r--r-- | src/tests/org/anarres/cpp/ErrorTestCase.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tests/org/anarres/cpp/ErrorTestCase.java b/src/tests/org/anarres/cpp/ErrorTestCase.java index ad042be..24bdf61 100644 --- a/src/tests/org/anarres/cpp/ErrorTestCase.java +++ b/src/tests/org/anarres/cpp/ErrorTestCase.java @@ -49,6 +49,12 @@ public class ErrorTestCase extends BaseTestCase { assertNotNull("CPP has listener", p.getListener()); assertTrue(testError(p)); assertTrue("Listener has errors", pl.getErrors() > 0); + + /* Without CSYNTAX, works happily. */ + sl = new StringLexerSource(input, true); + p = new Preprocessor(); + p.addInput(sl); + assertTrue(testError(p)); } public void testErrors() throws Exception { |