even better testing
This commit is contained in:
parent
aa04fe2b3c
commit
4326566ecd
2 changed files with 14 additions and 1 deletions
11
test.sh
11
test.sh
|
@ -1,7 +1,16 @@
|
|||
#!/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
|
||||
for input in tests/*; do
|
||||
for input in $listfic; do
|
||||
sed 's/\\/\\\\/g' $input > $tmpfic
|
||||
# set 3 as the file descriptor for the file $tmpfic
|
||||
exec 3< $tmpfic
|
||||
|
|
4
tests/list
Normal file
4
tests/list
Normal file
|
@ -0,0 +1,4 @@
|
|||
(a list)
|
||||
List [Atom "a",Atom "list"]
|
||||
(a (nested) list)
|
||||
List [Atom "a",List [Atom "nested"],Atom "list"]
|
Loading…
Reference in a new issue