summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/run_all.sh2
-rw-r--r--tests/test_array/want2
-rw-r--r--tests/test_blocks/want2
-rw-r--r--tests/test_mktag/want12
-rw-r--r--tests/test_pseudotags/want3
-rw-r--r--tests/test_simple/want2
6 files changed, 16 insertions, 7 deletions
diff --git a/tests/run_all.sh b/tests/run_all.sh
index 486454b..5727afb 100755
--- a/tests/run_all.sh
+++ b/tests/run_all.sh
@@ -5,7 +5,7 @@ for t in test_*; do
cd $t
php ../test.php > have
echo -ne "\e[1m$t\e[0m: "
- if cmp -s want have; then
+ if sed 's/\s*//' < have | grep -v '^$' | cmp -s want; then
echo "OK"
rm *.transc.php
else
diff --git a/tests/test_array/want b/tests/test_array/want
index a0aba93..d86bac9 100644
--- a/tests/test_array/want
+++ b/tests/test_array/want
@@ -1 +1 @@
-OK \ No newline at end of file
+OK
diff --git a/tests/test_blocks/want b/tests/test_blocks/want
index b9d1515..640cfef 100644
--- a/tests/test_blocks/want
+++ b/tests/test_blocks/want
@@ -1,3 +1,3 @@
Foo
Replaced
-Baz \ No newline at end of file
+Baz
diff --git a/tests/test_mktag/want b/tests/test_mktag/want
index be0b204..3e2351c 100644
--- a/tests/test_mktag/want
+++ b/tests/test_mktag/want
@@ -1 +1,11 @@
-0-4-8-12-16-20 \ No newline at end of file
+0
+-
+4
+-
+8
+-
+12
+-
+16
+-
+20
diff --git a/tests/test_pseudotags/want b/tests/test_pseudotags/want
index 4cd4538..3aaffdc 100644
--- a/tests/test_pseudotags/want
+++ b/tests/test_pseudotags/want
@@ -1,2 +1 @@
-
-<ste:rawtext>$foo bar <ste:bla a="$b" /> \ No newline at end of file
+<ste:rawtext>$foo bar <ste:bla a="$b" />
diff --git a/tests/test_simple/want b/tests/test_simple/want
index c57eff5..980a0d5 100644
--- a/tests/test_simple/want
+++ b/tests/test_simple/want
@@ -1 +1 @@
-Hello World! \ No newline at end of file
+Hello World!