aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/lexer/driver.cxx1
-rw-r--r--tests/quote/buildfile4
-rw-r--r--tests/quote/test.out3
-rwxr-xr-xtests/quote/test.sh2
4 files changed, 9 insertions, 1 deletions
diff --git a/tests/lexer/driver.cxx b/tests/lexer/driver.cxx
index e3543da..a3819f5 100644
--- a/tests/lexer/driver.cxx
+++ b/tests/lexer/driver.cxx
@@ -99,6 +99,7 @@ main ()
assert (lex ("f\"oo$ba\"r") == tokens ({"foo", "$", "bar", ""}));
assert (lex ("\"foo bar") == tokens ({"<lexer error>"}));
+ assert (lex ("\"foo $") == tokens ({"foo ", "$", "<lexer error>"}));
assert (lex ("\"foo $bar") == tokens ({"foo ", "$", "<lexer error>"}));
// Combinations.
diff --git a/tests/quote/buildfile b/tests/quote/buildfile
index 931bc36..6dd22b4 100644
--- a/tests/quote/buildfile
+++ b/tests/quote/buildfile
@@ -15,4 +15,8 @@ print "[ $bar ]"
print "[ $foo $bar ]"
print "[ $foo/$bar ]"
+print $foo'bar'
+print $foo"$bar"
+print "$foo"bar
+
./:
diff --git a/tests/quote/test.out b/tests/quote/test.out
index 802f28f..216b1c8 100644
--- a/tests/quote/test.out
+++ b/tests/quote/test.out
@@ -9,3 +9,6 @@ fo o bar
[ bar ]
[ fo o bar ]
[ fo o/ bar ]
+fo obar
+fo o bar
+fo obar
diff --git a/tests/quote/test.sh b/tests/quote/test.sh
index 145ea6b..b898b3c 100755
--- a/tests/quote/test.sh
+++ b/tests/quote/test.sh
@@ -1,3 +1,3 @@
#!/bin/sh
-valgrind -q b -q | diff test.out -
+valgrind -q b -q | diff -u test.out -