From 8c75e16855e8d8480005d1490f250039fbed4f8a Mon Sep 17 00:00:00 2001 From: Luis Mochan Date: Sun, 8 Dec 2024 13:47:48 -0600 Subject: [PATCH] Made a test of approx for complex values. 2.095 fails --- Basic/t/approx_cmplx.t | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Basic/t/approx_cmplx.t diff --git a/Basic/t/approx_cmplx.t b/Basic/t/approx_cmplx.t new file mode 100644 index 000000000..8e38355a9 --- /dev/null +++ b/Basic/t/approx_cmplx.t @@ -0,0 +1,11 @@ +use strict; +use warnings; +use Test::More; +use PDL; + + +# test approx +ok approx(i,i), 'i is approx i'; +ok !approx(i,5*i), 'i is not approx 5i'; + +done_testing; \ No newline at end of file