summaryrefslogtreecommitdiffstats
path: root/src/tests/org/anarres/cpp/CppReaderTestCase.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/org/anarres/cpp/CppReaderTestCase.java')
-rw-r--r--src/tests/org/anarres/cpp/CppReaderTestCase.java34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/tests/org/anarres/cpp/CppReaderTestCase.java b/src/tests/org/anarres/cpp/CppReaderTestCase.java
deleted file mode 100644
index df3aeb5..0000000
--- a/src/tests/org/anarres/cpp/CppReaderTestCase.java
+++ /dev/null
@@ -1,34 +0,0 @@
-package org.anarres.cpp;
-
-import java.util.Collections;
-
-import java.io.StringReader;
-import java.io.BufferedReader;
-
-import junit.framework.Test;
-
-public class CppReaderTestCase extends BaseTestCase implements Test {
-
- private void testCppReader(String in, String out)
- throws Exception {
- System.out.println("Testing " + in + " => " + out);
- StringReader r = new StringReader(in);
- CppReader p = new CppReader(r);
- p.getPreprocessor().setSystemIncludePath(
- Collections.singletonList("src/input")
- );
- p.getPreprocessor().getFeatures().add(Feature.LINEMARKERS);
- BufferedReader b = new BufferedReader(p);
-
- String line;
- while ((line = b.readLine()) != null) {
- System.out.println(" >> " + line);
- }
- }
-
- public void testCppReader()
- throws Exception {
- testCppReader("#include <test0.h>\n", "ab");
- }
-
-}