Added basic tests for __FILE__ and __LINE__.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 02 Mar 2010 22:41:42 -0800
changeset 877 7dd405cf0fb3
parent 876 e005b1f38952
child 878 b71e054884f4
Added basic tests for __FILE__ and __LINE__.
unit_tests/preprocessor/output/file-macro
unit_tests/preprocessor/output/file-macro.correct
unit_tests/preprocessor/output/line-macro
unit_tests/preprocessor/output/line-macro.correct
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/unit_tests/preprocessor/output/file-macro	Tue Mar 02 22:41:42 2010 -0800
@@ -0,0 +1,1 @@
+__FILE__
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/unit_tests/preprocessor/output/file-macro.correct	Tue Mar 02 22:41:42 2010 -0800
@@ -0,0 +1,1 @@
+"preprocessor/output/file-macro"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/unit_tests/preprocessor/output/line-macro	Tue Mar 02 22:41:42 2010 -0800
@@ -0,0 +1,4 @@
+Line one: __LINE__
+
+Line three: __LINE__
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/unit_tests/preprocessor/output/line-macro.correct	Tue Mar 02 22:41:42 2010 -0800
@@ -0,0 +1,1 @@
+Line one : 1 Line three : 3
\ No newline at end of file