Remove "unnecessary" whitespace from some tests.
authorCarl Worth <cworth@cworth.org>
Thu, 20 May 2010 21:05:37 +0000 (14:05 -0700)
committerCarl Worth <cworth@cworth.org>
Thu, 20 May 2010 21:05:37 +0000 (14:05 -0700)
This whitespace was not part of anything being tested, and it
introduces differences (that we don't actually care about) between the
output of "gcc -E" and glcpp.

Just eliminate this extra whitespace to reduce spurious test-case
failures.

tests/015-define-object-with-parens.c
tests/016-define-func-1-arg.c
tests/020-define-func-2-arg-multi.c
tests/023-define-extra-whitespace.c
tests/032-define-func-self-recurse.c
tests/033-define-func-self-compose.c
tests/035-define-func-self-compose-non-func-multi-token-argument.c

index 10bf7e3..558da9c 100644 (file)
@@ -1,4 +1,4 @@
-#define foo ( ) 1
+#define foo ()1
 foo()
-#define bar () 2
-bar( )
+#define bar ()2
+bar()
index dea38d1..a2e2404 100644 (file)
@@ -1,2 +1,2 @@
-#define foo(x) ((x) + 1)
+#define foo(x) ((x)+1)
 foo(bar)
index 2534211..3049ad1 100644 (file)
@@ -1,2 +1,2 @@
-#define foo(x,y) x, two fish, red fish, y
+#define foo(x,y) x,two fish,red fish,y
 foo(one fish, blue fish)
index 375355a..7ebfed6 100644 (file)
@@ -3,6 +3,6 @@
  # define  twoargs( x , y ) x y 
        #       define  threeargs(      a       ,       b       ,       c       ) a b c 
 noargs ( ) 
- onearg ( 2 ) 
-       twoargs ( 3 , 4 ) 
+onearg ( 2 ) 
+twoargs ( 3 , 4 ) 
 threeargs ( 5 , 6 , 7 ) 
index 60d8526..b3ac70f 100644 (file)
@@ -1,2 +1,2 @@
-#define foo(a) foo(2 * (a))
+#define foo(a) foo(2*(a))
 foo(3)
index 8abaaf6..f65e482 100644 (file)
@@ -1,2 +1,2 @@
-#define foo(a) foo(2 * (a))
+#define foo(a) foo(2*(a))
 foo(foo(3))