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 | |
parent | 282706bd6ddf2d2b6279683ab65c5c5b4df92046 (diff) |
extend testing a bit
-rw-r--r-- | etc/build.properties | 2 | ||||
-rw-r--r-- | src/tests/org/anarres/cpp/ErrorTestCase.java | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/etc/build.properties b/etc/build.properties index daad657..a5b92cf 100644 --- a/etc/build.properties +++ b/etc/build.properties @@ -1,4 +1,4 @@ -global.version = 1.2.3 +global.version = 1.2.4 global.name = anarres-cpp global.dir.arch = ${global.dir.root}/arch 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 { |