summaryrefslogtreecommitdiff
path: root/test/c
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2006-04-16 00:42:38 +0000
committermurphy <murphy@rubychan.de>2006-04-16 00:42:38 +0000
commita2834bb05c4ab5bd32437f333a26f8286438ade4 (patch)
tree9c984ba59c66e301de4de18b46e3f76c50ead402 /test/c
parentee808b400543d924286eebaee8ed1ad8a4e28ced (diff)
downloadcoderay-a2834bb05c4ab5bd32437f333a26f8286438ade4.tar.gz
All scanners revisited not to produce errors unless in DEBUG mode. [thx@Daniel]
Fixed numerization for input not ending with \n. Added test cases in C scanner tests. Added WoNáDo as contributer for last Ruby scanner fix. Updated TODO.
Diffstat (limited to 'test/c')
-rw-r--r--test/c/empty.in.c0
-rw-r--r--test/c/empty.out.raydebug0
-rw-r--r--test/c/error.in.c1
-rw-r--r--test/c/error.out.raydebug1
-rw-r--r--test/c/error2.in.c1
-rw-r--r--test/c/error2.out.raydebug1
6 files changed, 4 insertions, 0 deletions
diff --git a/test/c/empty.in.c b/test/c/empty.in.c
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test/c/empty.in.c
diff --git a/test/c/empty.out.raydebug b/test/c/empty.out.raydebug
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/test/c/empty.out.raydebug
diff --git a/test/c/error.in.c b/test/c/error.in.c
new file mode 100644
index 0000000..9cad53e
--- /dev/null
+++ b/test/c/error.in.c
@@ -0,0 +1 @@
+\\
diff --git a/test/c/error.out.raydebug b/test/c/error.out.raydebug
new file mode 100644
index 0000000..bc3c350
--- /dev/null
+++ b/test/c/error.out.raydebug
@@ -0,0 +1 @@
+error(\\)\
diff --git a/test/c/error2.in.c b/test/c/error2.in.c
new file mode 100644
index 0000000..1910281
--- /dev/null
+++ b/test/c/error2.in.c
@@ -0,0 +1 @@
+foo \ No newline at end of file
diff --git a/test/c/error2.out.raydebug b/test/c/error2.out.raydebug
new file mode 100644
index 0000000..ccd2125
--- /dev/null
+++ b/test/c/error2.out.raydebug
@@ -0,0 +1 @@
+ident(foo) \ No newline at end of file