home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / MAWK113.ZIP / mawk113 / test / fpe_test.g < prev    next >
Text File  |  1991-11-16  |  579b  |  22 lines

  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
  22.