diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2019-06-23 03:13:57 -0600 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2019-06-23 03:13:57 -0600 |
commit | d6c466c3671aeecf5e64b5bf9692f44517aefb46 (patch) | |
tree | 82cb4d461a702fac42d20e145fa846064c3d0cd6 /testdir/T.exprconv | |
parent | ae99b752af2f72bae5d4948f5b2e31dac0409601 (diff) | |
download | one-true-awk-d6c466c3671aeecf5e64b5bf9692f44517aefb46.tar.gz |
Extract testdir.
Diffstat (limited to 'testdir/T.exprconv')
-rwxr-xr-x | testdir/T.exprconv | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/testdir/T.exprconv b/testdir/T.exprconv new file mode 100755 index 0000000..b2b5c12 --- /dev/null +++ b/testdir/T.exprconv @@ -0,0 +1,21 @@ +echo T.exprconv: check conversion of expr to number + +awk=${awk-../a.out} + +$awk ' +BEGIN { x = (1 > 0); print x + x = (1 < 0); print x + x = (1 == 1); print x + print ("a" >= "b") + print ("b" >= "a") + print (0 == 0.0) + # x = ((1 == 1e0) && (1 == 10e-1) && (1 == .1e2)); print x + exit +}' >foo1 +echo '1 +0 +1 +0 +1 +1' >foo2 +cmp foo1 foo2 || echo 'BAD: T.exprconv (1 > 0, etc.)' |