summaryrefslogtreecommitdiff
path: root/src/c/auxiliaryFunctions/isnan/testIsNan.c
diff options
context:
space:
mode:
authorcornet2010-04-01 11:50:42 +0000
committercornet2010-04-01 11:50:42 +0000
commitc376d31d4dba016ddec4a1a4173dc417fa8494bb (patch)
tree80a57ae2c27e6d5c2d2dcf7be65e147ad6d490bd /src/c/auxiliaryFunctions/isnan/testIsNan.c
parent77ac2ce83397f6a371e3ed06eae67d7ad4f939b4 (diff)
downloadscilab2c-c376d31d4dba016ddec4a1a4173dc417fa8494bb.tar.gz
scilab2c-c376d31d4dba016ddec4a1a4173dc417fa8494bb.tar.bz2
scilab2c-c376d31d4dba016ddec4a1a4173dc417fa8494bb.zip
warnings
Diffstat (limited to 'src/c/auxiliaryFunctions/isnan/testIsNan.c')
-rw-r--r--src/c/auxiliaryFunctions/isnan/testIsNan.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/c/auxiliaryFunctions/isnan/testIsNan.c b/src/c/auxiliaryFunctions/isnan/testIsNan.c
index 01922c2e..6e14cd5b 100644
--- a/src/c/auxiliaryFunctions/isnan/testIsNan.c
+++ b/src/c/auxiliaryFunctions/isnan/testIsNan.c
@@ -23,13 +23,13 @@ int sisnansTest() {
float full = 1.23456789f;
printf(">> Float \n");
- if (sisnans(nan) == false) {
+ if ((bool)sisnans(nan) == false) {
printf("ERROR ! : Test Failed (Must be nan)\n");
result = ERROR;
}
assert (sisnans(nan) == true);
- if (sisnans(full) == true) {
+ if ((bool)sisnans(full) == true) {
printf("ERROR ! : Test Failed (Must not be nan)\n");
result = ERROR;
}
@@ -46,13 +46,13 @@ int disnansTest() {
double full = 1.456789321861;
printf(">> Double\n");
- if (disnans(nan) == false) {
+ if ((bool)disnans(nan) == false) {
printf("ERROR ! : Test Failed (Must be nan)\n");
result = ERROR;
}
assert(disnans(nan) == true);
- if (disnans(full) == true) {
+ if ((bool)disnans(full) == true) {
printf("ERROR ! : Test Failed (non nan array)\n");
result = ERROR;
}
@@ -71,25 +71,25 @@ int cisnansTest() {
floatComplex full = FloatComplex(0.0f,1.0f);
printf(">> Float Complex\n");
- if (cisnans(nan_nan) == false) {
+ if ((bool)cisnans(nan_nan) == false) {
printf("ERROR ! : Test Failed (Must be nan)\n");
result = ERROR;
}
assert (cisnans(nan_nan) == true);
- if (cisnans(nan_real) == true) {
+ if ((bool)cisnans(nan_real) == true) {
printf("ERROR ! : Test Failed (Must not be nan)\n");
result = ERROR;
}
assert(cisnans(nan_real) == false);
- if (cisnans(real_nan) == true) {
+ if ((bool)cisnans(real_nan) == true) {
printf("ERROR ! : Test Failed (Must not be nan)\n");
result = ERROR;
}
assert(cisnans(real_nan) == false);
- if (cisnans(full) == true) {
+ if ((bool)cisnans(full) == true) {
printf("ERROR ! : Test Failed (Must not be nan)\n");
result = ERROR;
}
@@ -109,25 +109,25 @@ int zisnansTest() {
floatComplex full = FloatComplex(0.0f,1.0f);
printf(">> Double Complex\n");
- if (cisnans(nan_nan) == false) {
+ if ((bool)cisnans(nan_nan) == false) {
printf("ERROR ! : Test Failed (Must be nan)\n");
result = ERROR;
}
assert (cisnans(nan_nan) == true);
- if (cisnans(nan_real) == true) {
+ if ((bool)cisnans(nan_real) == true) {
printf("ERROR ! : Test Failed (Must not be nan)\n");
result = ERROR;
}
assert(cisnans(nan_real) == false);
- if (cisnans(real_nan) == true) {
+ if ((bool)cisnans(real_nan) == true) {
printf("ERROR ! : Test Failed (Must not be nan)\n");
result = ERROR;
}
assert(cisnans(real_nan) == false);
- if (cisnans(full) == true) {
+ if ((bool)cisnans(full) == true) {
printf("ERROR ! : Test Failed (Must not be nan)\n");
result = ERROR;
}