From 5972de0bb1aa278f7c3d8762793b2ec6c9ca27ad Mon Sep 17 00:00:00 2001 From: rlar Date: Mon, 13 Jun 2016 19:48:58 +0200 Subject: [PATCH] make regression tests insensitive to -0 versus +0 --- tests/regression/lib-processing/ex1a.cir | 2 +- tests/regression/lib-processing/ex1a.out | 2 +- tests/regression/lib-processing/ex1b.cir | 2 +- tests/regression/lib-processing/ex1b.out | 2 +- tests/regression/lib-processing/ex2a.cir | 2 +- tests/regression/lib-processing/ex2a.out | 4 ++-- tests/regression/lib-processing/ex3a.cir | 2 +- tests/regression/lib-processing/ex3a.out | 4 ++-- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/regression/lib-processing/ex1a.cir b/tests/regression/lib-processing/ex1a.cir index d3bfb5fe3..213c0c086 100644 --- a/tests/regression/lib-processing/ex1a.cir +++ b/tests/regression/lib-processing/ex1a.cir @@ -15,7 +15,7 @@ R2 n1 n2 2k .control op -print v(check0) +print abs(v(check0)) if abs(v(check0)) > 1e-9 quit 1 diff --git a/tests/regression/lib-processing/ex1a.out b/tests/regression/lib-processing/ex1a.out index 1d4878149..ee9fa2fa2 100644 --- a/tests/regression/lib-processing/ex1a.out +++ b/tests/regression/lib-processing/ex1a.out @@ -5,5 +5,5 @@ Doing analysis at TEMP = 27.000000 and TNOM = 27.000000 No. of Data Rows : 1 -v(check0) = 0.000000e+00 +abs(v(check0)) = 0.000000e+00 INFO: ok diff --git a/tests/regression/lib-processing/ex1b.cir b/tests/regression/lib-processing/ex1b.cir index 203fc373b..34048521b 100644 --- a/tests/regression/lib-processing/ex1b.cir +++ b/tests/regression/lib-processing/ex1b.cir @@ -19,7 +19,7 @@ R4 n1 n2 4k .control op -print v(check0) +print abs(v(check0)) if abs(v(check0)) > 1e-9 quit 1 diff --git a/tests/regression/lib-processing/ex1b.out b/tests/regression/lib-processing/ex1b.out index 955cff684..444fffe1b 100644 --- a/tests/regression/lib-processing/ex1b.out +++ b/tests/regression/lib-processing/ex1b.out @@ -5,5 +5,5 @@ Doing analysis at TEMP = 27.000000 and TNOM = 27.000000 No. of Data Rows : 1 -v(check0) = 0.000000e+00 +abs(v(check0)) = 0.000000e+00 INFO: ok diff --git a/tests/regression/lib-processing/ex2a.cir b/tests/regression/lib-processing/ex2a.cir index 7e119ad52..66a9c1f7e 100644 --- a/tests/regression/lib-processing/ex2a.cir +++ b/tests/regression/lib-processing/ex2a.cir @@ -15,7 +15,7 @@ Vcheck2 9 check2 2.0V .control op -print v(check1) v(check2) +print abs(v(check1)) abs(v(check2)) if abs(v(check1)) > 1e-9 quit 1 diff --git a/tests/regression/lib-processing/ex2a.out b/tests/regression/lib-processing/ex2a.out index 6d7c9d26a..77f27bdc6 100644 --- a/tests/regression/lib-processing/ex2a.out +++ b/tests/regression/lib-processing/ex2a.out @@ -5,6 +5,6 @@ Doing analysis at TEMP = 27.000000 and TNOM = 27.000000 No. of Data Rows : 1 -v(check1) = 0.000000e+00 -v(check2) = 0.000000e+00 +abs(v(check1)) = 0.000000e+00 +abs(v(check2)) = 0.000000e+00 INFO: ok diff --git a/tests/regression/lib-processing/ex3a.cir b/tests/regression/lib-processing/ex3a.cir index a2122f0d1..a6efce473 100644 --- a/tests/regression/lib-processing/ex3a.cir +++ b/tests/regression/lib-processing/ex3a.cir @@ -15,7 +15,7 @@ Vcheck2 9 check2 2.0V .control op -print v(check1) v(check2) +print abs(v(check1)) abs(v(check2)) if abs(v(check1)) > 1e-9 quit 1 diff --git a/tests/regression/lib-processing/ex3a.out b/tests/regression/lib-processing/ex3a.out index 7d54a8b67..6ebcd659f 100644 --- a/tests/regression/lib-processing/ex3a.out +++ b/tests/regression/lib-processing/ex3a.out @@ -5,6 +5,6 @@ Doing analysis at TEMP = 27.000000 and TNOM = 27.000000 No. of Data Rows : 1 -v(check1) = 0.000000e+00 -v(check2) = 0.000000e+00 +abs(v(check1)) = 0.000000e+00 +abs(v(check2)) = 0.000000e+00 INFO: ok