summaryrefslogtreecommitdiff
path: root/src/statisticsFunctions/sum/testDoubleSum.c
diff options
context:
space:
mode:
authorcornet2009-04-23 09:14:00 +0000
committercornet2009-04-23 09:14:00 +0000
commit11ff72181710d769d4c7383194116610c1b6eacb (patch)
treeacedff47125a311cac814b9a9c53725122979d93 /src/statisticsFunctions/sum/testDoubleSum.c
parent1199930d082d0e8cfe3ae9119b65244844d0fc44 (diff)
downloadscilab2c-11ff72181710d769d4c7383194116610c1b6eacb.tar.gz
scilab2c-11ff72181710d769d4c7383194116610c1b6eacb.tar.bz2
scilab2c-11ff72181710d769d4c7383194116610c1b6eacb.zip
add statisticsFunctions tests projects
Diffstat (limited to 'src/statisticsFunctions/sum/testDoubleSum.c')
-rw-r--r--src/statisticsFunctions/sum/testDoubleSum.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/statisticsFunctions/sum/testDoubleSum.c b/src/statisticsFunctions/sum/testDoubleSum.c
index e00ec0ec..c5e2af2d 100644
--- a/src/statisticsFunctions/sum/testDoubleSum.c
+++ b/src/statisticsFunctions/sum/testDoubleSum.c
@@ -319,12 +319,12 @@ static int zrowsumaTest(void) {
}
assert(zreals(rowSummedIn_2_6[0]) == 0.1 && zimags(rowSummedIn_2_6[0]) == 2.1);
assert(zreals(rowSummedIn_2_6[1]) == 0.5);
- assert(fabs(zimags(rowSummedIn_2_6[1]) == 1.7) < 1e-16);
+ assert(fabs(double(zimags(rowSummedIn_2_6[1]) == 1.7)) < 1e-16);
assert(zreals(rowSummedIn_2_6[2]) == 0.9);
- assert(fabs(zimags(rowSummedIn_2_6[2]) == 1.3) < 1e-16);
- assert(fabs(zreals(rowSummedIn_2_6[3]) == 1.3) < 1e-16);
+ assert(fabs(double(zimags(rowSummedIn_2_6[2]) == 1.3)) < 1e-16);
+ assert(fabs(double(zreals(rowSummedIn_2_6[3]) == 1.3)) < 1e-16);
assert(zimags(rowSummedIn_2_6[3]) == 0.9);
- assert(fabs(zreals(rowSummedIn_2_6[4]) == 1.7) < 1e-16);
+ assert(fabs(double(zreals(rowSummedIn_2_6[4]) == 1.7)) < 1e-16);
assert(zimags(rowSummedIn_2_6[4]) == 0.5);
assert(zreals(rowSummedIn_2_6[5]) == 2.1 && zimags(rowSummedIn_2_6[5]) == 0.1);