aboutsummaryrefslogtreecommitdiffhomepage
path: root/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test.sh')
-rw-r--r--test.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/test.sh b/test.sh
new file mode 100644
index 0000000..87efd7c
--- /dev/null
+++ b/test.sh
@@ -0,0 +1,13 @@
+if [[ ! "$(php polyglot.txt)" = '#php' ]]; then
+ echo php >&2
+ exit 1
+fi
+if [[ ! "$(ruby polyglot.txt)" = '#ruby' ]]; then
+ echo ruby >&2
+ exit 1
+fi
+if [[ ! "$(perl polyglot.txt)" = '#perl' ]]; then
+ echo perl >&2
+ exit 1
+fi
+echo okay