From 0e479d174065605b32892be1a7fc5f789ea2e255 Mon Sep 17 00:00:00 2001 From: Shevek Date: Fri, 13 Jun 2008 21:56:55 +0000 Subject: extend testing a bit --- src/tests/org/anarres/cpp/ErrorTestCase.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/tests') 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 { -- cgit v1.2.3