diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-09-27 09:53:37 -0600 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2023-09-27 09:53:37 -0600 |
commit | 1a8c81d07efe55c5a6909aff32359d4b8866af1c (patch) | |
tree | dbaf949a4d20226560d97ef9b48dbdcd71b7ad1a /cl/tests/maceps.lisp | |
parent | 5e85a662d21081bc27adc1142759659cca59cd62 (diff) | |
download | cmath-1a8c81d07efe55c5a6909aff32359d4b8866af1c.tar.gz cmath-1a8c81d07efe55c5a6909aff32359d4b8866af1c.zip |
keep unit tests but make directory structure more consistent with requirements i did not read
Diffstat (limited to 'cl/tests/maceps.lisp')
-rw-r--r-- | cl/tests/maceps.lisp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/cl/tests/maceps.lisp b/cl/tests/maceps.lisp deleted file mode 100644 index cd5ced9..0000000 --- a/cl/tests/maceps.lisp +++ /dev/null @@ -1,27 +0,0 @@ -(defpackage lizfcm/tests.maceps - (:use :cl - :fiveam - :lizfcm.approx - :lizfcm.utils - :lizfcm/tests) - (:export :approx-suite)) -(in-package :lizfcm/tests.maceps) - -(def-suite maceps-suite - :in lizfcm-test-suite) -(in-suite maceps-suite) - -(test maceps - :description "double precision provides precision about (mac eps of single precision) squared" - (let* ((maceps-computation-double (compute-maceps (lambda (x) x) - 1.0d0 - 1.0d0)) - (maceps-computation-single (compute-maceps (lambda (x) x) - 1.0 - 1.0)) - (last-double-h (cadar (last maceps-computation-double))) - (last-single-h (cadar (last maceps-computation-single)))) - (is (within-range-p - (- last-double-h (* last-single-h last-single-h)) - 0 - last-single-h)))) |