Added more unit tests.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 12 Mar 2010 09:42:24 -0500
changeset 897 c1b1c55d292a
parent 896 7a7989b18117
child 898 7f55db1ec3c1
Added more unit tests.
unit_tests/preprocessor/output/macro-blank-arg
unit_tests/preprocessor/output/macro-blank-arg.correct
unit_tests/preprocessor/output/stringify-operator-blank-arg
unit_tests/preprocessor/output/stringify-operator-blank-arg.correct
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/unit_tests/preprocessor/output/macro-blank-arg	Fri Mar 12 09:42:24 2010 -0500
@@ -0,0 +1,4 @@
+// This shouldn't produce an error (the "()" should be treated as one
+//  blank argument.
+#define x(y) y
+x()
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/unit_tests/preprocessor/output/stringify-operator-blank-arg	Fri Mar 12 09:42:24 2010 -0500
@@ -0,0 +1,4 @@
+// This shouldn't produce an error (the "()" should be treated as one
+//  blank argument, turned into a ""
+#define x(y) #y
+x()
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/unit_tests/preprocessor/output/stringify-operator-blank-arg.correct	Fri Mar 12 09:42:24 2010 -0500
@@ -0,0 +1,1 @@
+""
\ No newline at end of file