Add basic tests.

This commit is contained in:
Andy Stewart
2014-11-12 15:37:03 +01:00
parent b0e9efa11c
commit 09134a5138
10 changed files with 149 additions and 0 deletions

13
test/test.sh Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env bash
rm -f *.out
# Run the tests.
vim -N -u NONE -S test.vim
# Verify the outputs.
for expected in *.ok; do
name=${expected%.*}
actual=$name.out
diff $expected $actual && echo "$name ok" || echo "$name failed"
done