diff options
author | chrysn <chrysn@fsfe.org> | 2013-06-25 11:19:37 (GMT) |
---|---|---|
committer | chrysn <chrysn@fsfe.org> | 2013-06-25 12:26:28 (GMT) |
commit | 077332ff5cb8a41de2922a6f1be00597b30a02dd (patch) | |
tree | 973b89eb9680d04011d8ea1df6e305b0cf5d9a76 /tests | |
parent | a4b5449d4e42556cc2c4799623aa069073e7f9ac (diff) |
normalize -nan and -0 in all output modes
having a stable output is not only relevant in testing, and with the
main binary being used for more tests, having those normalizations takes
load off the preparing scripts tests/{dumptest,echotest}
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/dumptest | 4 | ||||
-rwxr-xr-x | tests/echotest | 4 |
2 files changed, 0 insertions, 8 deletions
diff --git a/tests/dumptest b/tests/dumptest index 180fa1b..0c60099 100755 --- a/tests/dumptest +++ b/tests/dumptest @@ -4,8 +4,4 @@ openscad $1 -o $2 sed 's/, timestamp = [0-9]*//' -i $2 -sed 's/-nan/nan/g' -i $2 - -sed 's/-\(0[],)]\)/\1/g' -i $2 - sed 's/-\?[0-9].[0-9]*e-[0-9]\{2,\}/0/g' -i $2 diff --git a/tests/echotest b/tests/echotest index 2ca520c..9e29878 100755 --- a/tests/echotest +++ b/tests/echotest @@ -2,8 +2,4 @@ openscad $1 -o null 2> $2 -sed 's/-nan/nan/g' -i $2 - -sed 's/-\(0[],)]\)/\1/g' -i $2 - sed 's/-\?[0-9].[0-9]*e-[0-9]\{2,\}/0/g' -i $2 |