Added a unit test for the previous commit.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 16 Apr 2013 00:54:40 -0400
changeset 1127 4d7716f32464
parent 1126 91c22d2de774
child 1128 a66416e507d1
Added a unit test for the previous commit.
unit_tests/preprocessor/output/if-with-embedded-parens
unit_tests/preprocessor/output/if-with-embedded-parens.correct
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/unit_tests/preprocessor/output/if-with-embedded-parens	Tue Apr 16 00:54:40 2013 -0400
@@ -0,0 +1,7 @@
+// Before hg changeset 91c22d2de774, the preprocessor incorrect thought
+//  that the '+' is a unary operator and would fail to parse the expression.
+#if ((1) + (0) < 12)
+RIGHT
+#else
+WRONG
+#endif
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/unit_tests/preprocessor/output/if-with-embedded-parens.correct	Tue Apr 16 00:54:40 2013 -0400
@@ -0,0 +1,1 @@
+RIGHT