Git init
[external/mawk.git] / test / fpe_test.g
1 #  tests if mawk has been compiled to correctly handle
2 #  floating point exceptions
3
4 echo testing division by zero
5 mawk -f fpetest1.awk
6 echo ========================== status = $status ==========================
7
8 echo testing overflow
9 mawk -f fpetest2.awk
10 echo ========================== status = $status ==========================
11
12 echo testing domain error
13 cat fpetest3.awk
14 mawk -f fpetest3.awk >temp
15 echo ========================== status = $status ==========================
16
17 cat temp
18
19 echo  the returns should  be 1 0 1
20 echo  note on the atari it cannot be 1 1 1
21 # rm  temp