even better testing

This commit is contained in:
Yann Esposito (Yogsototh) 2013-07-18 10:54:25 +02:00
parent aa04fe2b3c
commit 4326566ecd
2 changed files with 14 additions and 1 deletions

11
test.sh
View file

@ -1,7 +1,16 @@
#!/usr/bin/env zsh #!/usr/bin/env zsh
typeset -a listfic
if (($#==0)); then
listfic=( tests/*(.N) )
else
for arg in $@; do
listfic=( $listfic tests/$arg )
done
fi
tmpfic=tests/tmp tmpfic=tests/tmp
for input in tests/*; do for input in $listfic; do
sed 's/\\/\\\\/g' $input > $tmpfic sed 's/\\/\\\\/g' $input > $tmpfic
# set 3 as the file descriptor for the file $tmpfic # set 3 as the file descriptor for the file $tmpfic
exec 3< $tmpfic exec 3< $tmpfic

4
tests/list Normal file
View file

@ -0,0 +1,4 @@
(a list)
List [Atom "a",Atom "list"]
(a (nested) list)
List [Atom "a",List [Atom "nested"],Atom "list"]