Lines Matching refs:nan
36 double nan = uprv_getNaN();
66 // test infinity and nan
68 remainderTest(ninf, nan, 1.25);
69 remainderTest(pinf, nan, 1.25);
86 errln(UnicodeString("FAIL: got NaN as result without NaN as argument"));
102 double nan = uprv_getNaN();
124 // NaN with +Inf and -Inf
125 maxMinTest(pinf, nan, nan, TRUE);
126 maxMinTest(pinf, nan, nan, FALSE);
127 maxMinTest(ninf, nan, nan, TRUE);
128 maxMinTest(ninf, nan, nan, FALSE);
130 // NaN with NaN
131 maxMinTest(nan, nan, nan, TRUE);
132 maxMinTest(nan, nan, nan, FALSE);
134 // NaN with +0 and -0
135 maxMinTest(nan, pzero, nan, TRUE);
136 maxMinTest(nan, pzero, nan, FALSE);
137 maxMinTest(nan, nzero, nan, TRUE);
138 maxMinTest(nan, nzero, nan, FALSE);
194 errln(UnicodeString("FAIL: got NaN as result without NaN as argument"));
216 // NaN is weird- comparisons with NaN _always_ return false, with the
221 logln("NaN tests may show that the expected NaN!=NaN etc. is not true on some");
223 logln("and uses uprv_isNaN(). Therefore, most failing NaN tests only report warnings.");
233 logln("End of NaN tests.");
372 double nan = uprv_getNaN();
375 if(uprv_isNaN(nan) == FALSE) {
376 errln("FAIL: isNaN() returned FALSE for NaN.");
399 double nan = uprv_getNaN();
402 if((nan > nan) != FALSE) {
403 logln("WARNING: NaN > NaN returned TRUE, should be FALSE");
406 if((nan > pinf) != FALSE) {
407 logln("WARNING: NaN > +Infinity returned TRUE, should be FALSE");
410 if((nan > ninf) != FALSE) {
411 logln("WARNING: NaN > -Infinity returned TRUE, should be FALSE");
414 if((nan > ten) != FALSE) {
415 logln("WARNING: NaN > 10.0 returned TRUE, should be FALSE");
426 double nan = uprv_getNaN();
429 if((nan < nan) != FALSE) {
430 logln("WARNING: NaN < NaN returned TRUE, should be FALSE");
433 if((nan < pinf) != FALSE) {
434 logln("WARNING: NaN < +Infinity returned TRUE, should be FALSE");
437 if((nan < ninf) != FALSE) {
438 logln("WARNING: NaN < -Infinity returned TRUE, should be FALSE");
441 if((nan < ten) != FALSE) {
442 logln("WARNING: NaN < 10.0 returned TRUE, should be FALSE");
453 double nan = uprv_getNaN();
456 if((nan >= nan) != FALSE) {
457 logln("WARNING: NaN >= NaN returned TRUE, should be FALSE");
460 if((nan >= pinf) != FALSE) {
461 logln("WARNING: NaN >= +Infinity returned TRUE, should be FALSE");
464 if((nan >= ninf) != FALSE) {
465 logln("WARNING: NaN >= -Infinity returned TRUE, should be FALSE");
468 if((nan >= ten) != FALSE) {
469 logln("WARNING: NaN >= 10.0 returned TRUE, should be FALSE");
480 double nan = uprv_getNaN();
483 if((nan <= nan) != FALSE) {
484 logln("WARNING: NaN <= NaN returned TRUE, should be FALSE");
487 if((nan <= pinf) != FALSE) {
488 logln("WARNING: NaN <= +Infinity returned TRUE, should be FALSE");
491 if((nan <= ninf) != FALSE) {
492 logln("WARNING: NaN <= -Infinity returned TRUE, should be FALSE");
495 if((nan <= ten) != FALSE) {
496 logln("WARNING: NaN <= 10.0 returned TRUE, should be FALSE");
507 double nan = uprv_getNaN();
510 if((nan == nan) != FALSE) {
511 logln("WARNING: NaN == NaN returned TRUE, should be FALSE");
514 if((nan == pinf) != FALSE) {
515 logln("WARNING: NaN == +Infinity returned TRUE, should be FALSE");
518 if((nan == ninf) != FALSE) {
519 logln("WARNING: NaN == -Infinity returned TRUE, should be FALSE");
522 if((nan == ten) != FALSE) {
523 logln("WARNING: NaN == 10.0 returned TRUE, should be FALSE");
534 double nan = uprv_getNaN();
537 if((nan != nan) != TRUE) {
538 logln("WARNING: NaN != NaN returned FALSE, should be TRUE");
541 if((nan != pinf) != TRUE) {
542 logln("WARNING: NaN != +Infinity returned FALSE, should be TRUE");
545 if((nan != ninf) != TRUE) {
546 logln("WARNING: NaN != -Infinity returned FALSE, should be TRUE");
549 if((nan != ten) != TRUE) {
550 logln("WARNING: NaN != 10.0 returned FALSE, should be TRUE");