Execution Time0.10s

Test: vnl_test_na (Failed)
Build: Mac10.9-clang-dbg-x86_64 (RogueResearch6) on 2014-07-24 11:13:45
Repository revision: 48f4a10e6087a14bfa1886edc132b57adfb729ae

Exit Value18

Show Command Line
Display graphs:

Test output
-----------------------------------------------------------------------------
Start Testing test_na:
-----------------------------------------------------------------------------
qnan_d = nan = 7ff8000000000000
na_d   = nan = 7ff00000000007a2
qnan_f = nan = 7fc00000
na_f   = nan = 7f8007a2


Single precision
 Test 001: isnan(NaN)                                            -->   PASSED
 Test 002: isnan(NA)                                             -->   PASSED
 Test 003: isnan(NA2)                                            -->   PASSED
 Test 004: isnan(1/NA2)                                          -->   PASSED
 Test 005: isna(NA)                                              -->   PASSED
 Test 006: isna(NA2)                                             -->   PASSED
 Test 007: isna(1/NA2)                                           -->   PASSED
 Test 008: !isfinite(NA)                                         -->   PASSED
 Test 009: !isinf(NA)                                            -->   PASSED
 Test 010: !isna(0)                                              -->   PASSED
 Test 011: !isna(-0)                                             -->   PASSED
 Test 012: !isna(-1.0)                                           -->   PASSED
 Test 013: !isna(inf)                                            -->   PASSED
 Test 014: !isna(NaN)                                            -->   PASSED
 Test 015: !isna(-NaN)                                           -->   PASSED
 Test 016: isna(nan_to_na(NaN))                                  -->   PASSED
 Test 017: !isna(nan_to_na(4.0))                                 -->   PASSED
 Test 018: nan_to_na(4.0)                                        -->   PASSED
 Test 019: nan_to_na(-inf)                                       -->   PASSED
 Test 020: isna(nan_to_na(NaN))                                  -->   PASSED
 Test 021: !isna(nan_to_na(4.0))                                 -->   PASSED
 Test 022: x="NA"                                                --> **FAILED**
x = 0 = 00000000
 Test 023: x="NA  "                                              --> **FAILED**
x = 0 = 00000000
 Test 024: x="1.0"                                               -->   PASSED
x = 1 = 3f800000
 Test 025: x,y="NA1.0"                                           --> **FAILED**
x = 0 = 00000000
 Test 026: x,y="1.0NA"                                           --> **FAILED**
y = 0 = 00000000
 Test 027: x,y="NANA"                                            --> **FAILED**
x = 0 = 00000000
 Test 028: x,y="NA 1.0"                                          --> **FAILED**
x = 0 = 00000000
 Test 029: x,y="1.0 NA"                                          --> **FAILED**
y = 0 = 00000000
 Test 030: x,y="NA NA"                                           --> **FAILED**
x = nan = 7f8070a2
 Test 031: x,y="-1.0-1.0"                                        -->   PASSED
x = -1 = bf800000
 Test 032: output "-1.5NA"                                       -->   PASSED
ss = -1.5NA
 Test 033: x,y="-1.0 NA"                                         --> **FAILED**
y = 0 = 00000000
ss = -1 NA

Double precision
 Test 034: isnan(NaN)                                            -->   PASSED
 Test 035: isnan(NA)                                             -->   PASSED
 Test 036: isnan(NA2)                                            -->   PASSED
 Test 037: isnan(1/NA2)                                          -->   PASSED
 Test 038: isna(NA)                                              -->   PASSED
 Test 039: isna(NA2)                                             -->   PASSED
 Test 040: isna(1/NA2)                                           -->   PASSED
 Test 041: !isfinite(NA)                                         -->   PASSED
 Test 042: !isinf(NA)                                            -->   PASSED
 Test 043: !isna(0)                                              -->   PASSED
 Test 044: !isna(-0)                                             -->   PASSED
 Test 045: !isna(-1.0)                                           -->   PASSED
 Test 046: !isna(inf)                                            -->   PASSED
 Test 047: !isna(NaN)                                            -->   PASSED
 Test 048: !isna(-NaN)                                           -->   PASSED
 Test 049: isna(nan_to_na(NaN))                                  -->   PASSED
 Test 050: !isna(nan_to_na(4.0))                                 -->   PASSED
 Test 051: nan_to_na(4.0)                                        -->   PASSED
 Test 052: nan_to_na(-inf)                                       -->   PASSED
 Test 053: isna(nan_to_na(NaN))                                  -->   PASSED
 Test 054: !isna(nan_to_na(4.0))                                 -->   PASSED
 Test 055: x="NA"                                                --> **FAILED**
x = 0 = 0000000000000000
 Test 056: x="NA  "                                              --> **FAILED**
x = 0 = 0000000000000000
 Test 057: x="1.0"                                               -->   PASSED
x = 1 = 3ff0000000000000
 Test 058: x,y="NA1.0"                                           --> **FAILED**
x = 0 = 0000000000000000
 Test 059: x,y="1.0NA"                                           --> **FAILED**
y = 0 = 0000000000000000
 Test 060: x,y="NANA"                                            --> **FAILED**
x = 0 = 0000000000000000
 Test 061: x,y="NA 1.0"                                          --> **FAILED**
x = 0 = 0000000000000000
 Test 062: x,y="1.0 NA"                                          --> **FAILED**
y = 0 = 0000000000000000
 Test 063: x,y="NA NA"                                           --> **FAILED**
x = nan = 7ff00000000070a2
 Test 064: x,y="-1.0-1.0"                                        -->   PASSED
x = -1 = bff0000000000000
 Test 065: output "-1.5NA"                                       -->   PASSED
ss = -1.5NA
 Test 066: x,y="-1.0 NA"                                         --> **FAILED**
y = 0 = 0000000000000000
ss = -1 NA
 Test 067: static_cast<NA float> is not NA double                -->   PASSED
-----------------------------------------------------------------------------
test_na Test Summary: 49 tests succeeded, 18 tests failed		*****
-----------------------------------------------------------------------------