diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-11-25 02:04:15 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-11-25 02:04:15 -0500 |
commit | 7bbc14551b0513ec94bdac0eff0d64842fe55b2b (patch) | |
tree | 5372e3149a0d277531613b61296d99567f233f53 /tests/dimension/numeric.sh | |
parent | 1d427193ffd38b85489b5e997faf72051305ec7a (diff) | |
download | dimension-7bbc14551b0513ec94bdac0eff0d64842fe55b2b.tar.xz |
Format S-expressions a bit nicer in test scripts.
Diffstat (limited to 'tests/dimension/numeric.sh')
-rwxr-xr-x | tests/dimension/numeric.sh | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/dimension/numeric.sh b/tests/dimension/numeric.sh index d4b4d89..50a4e65 100755 --- a/tests/dimension/numeric.sh +++ b/tests/dimension/numeric.sh @@ -20,7 +20,21 @@ ######################################################################### numeric=$(${top_builddir}/dimension/dimension --tokenize ${srcdir}/numeric.pov) -numeric_exp='((integer "1") (integer "123456789") (integer "01234567") (integer "0x123456789") - (integer "0x01") (float ".1") (float "0.1") (float "1.0") (float "0.123456789") - (float "0.123456789") < (integer "1") , (float "2.2") , - (float "3.03") >)' +numeric_exp=$(echo -n \ +'((integer "1") + (integer "123456789") + (integer "01234567") + (integer "0x123456789") + - (integer "0x01") + + (float ".1") + (float "0.1") + (float "1.0") + (float "0.123456789") + - (float "0.123456789") + + < (integer "1") , (float "2.2") , - (float "3.03") >)' \ +| tr '\n' ' ' | sed -r 's/[[:space:]]+/ /g') if [ "$numeric" != "$numeric_exp" ]; then echo "numeric.pov tokenized as \"$numeric\"" >&2 |