aboutsummaryrefslogtreecommitdiff
path: root/test/003-test-invalid-char.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/003-test-invalid-char.test')
-rw-r--r--test/003-test-invalid-char.test/run.sh9
-rw-r--r--test/003-test-invalid-char.test/stderr.expected2
2 files changed, 11 insertions, 0 deletions
diff --git a/test/003-test-invalid-char.test/run.sh b/test/003-test-invalid-char.test/run.sh
new file mode 100644
index 0000000..a59b826
--- /dev/null
+++ b/test/003-test-invalid-char.test/run.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+${EXECUTABLE} -s foovalid1not
+
+if [ $? -eq 0 ]; then
+ exit 1
+else
+ exit 0
+fi
diff --git a/test/003-test-invalid-char.test/stderr.expected b/test/003-test-invalid-char.test/stderr.expected
new file mode 100644
index 0000000..f1652b2
--- /dev/null
+++ b/test/003-test-invalid-char.test/stderr.expected
@@ -0,0 +1,2 @@
+Error: search contains non-base-32 character(s): 1
+I cannot search for something that will never occur