Changeset 12607 for trunk/psLib/test/math/tap_psStats01.c
- Timestamp:
- Mar 27, 2007, 12:52:03 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/math/tap_psStats01.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/math/tap_psStats01.c
r11420 r12607 8 8 * @author GLG, MHPCC 9 9 * 10 * @version $Revision: 1. 3$ $Name: not supported by cvs2svn $11 * @date $Date: 2007-0 1-30 04:41:51$10 * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2007-03-27 22:52:03 $ 12 12 * 13 13 * Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii … … 63 63 ok(result, "psVectorStats suceeded"); 64 64 ok(!isnan(myStats->max), "psVectorStats() returned non-NAN"); 65 ok_float_tol(myStats->max, expectedMaxNoMaskF32, 1e-4,65 is_float_tol(myStats->max, expectedMaxNoMaskF32, 1e-4, 66 66 "The max was %f, should be %f", myStats->max, expectedMaxNoMaskF32); 67 67 ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks"); … … 74 74 ok(result, "psVectorStats suceeded"); 75 75 ok(!isnan(myStats->max), "psVectorStats() returned non-NAN"); 76 ok_float_tol(myStats->max, expectedMaxWithMaskF32, 1e-4,76 is_float_tol(myStats->max, expectedMaxWithMaskF32, 1e-4, 77 77 "The max was %f, should be %f", myStats->max, expectedMaxWithMaskF32); 78 78 ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks"); … … 88 88 ok(result, "psVectorStats suceeded"); 89 89 ok(!isnan(myStats->max), "psVectorStats() returned non-NAN"); 90 ok_float_tol(myStats->max, expectedMaxRangeNoMaskF32, 1e-4,90 is_float_tol(myStats->max, expectedMaxRangeNoMaskF32, 1e-4, 91 91 "The max was %f, should be %f", myStats->max, expectedMaxRangeNoMaskF32); 92 92 ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks"); … … 101 101 ok(result, "psVectorStats suceeded"); 102 102 ok(!isnan(myStats->max), "psVectorStats() returned non-NAN"); 103 ok_float_tol(myStats->max, expectedMaxRangeWithMaskF32, 1e-4,103 is_float_tol(myStats->max, expectedMaxRangeWithMaskF32, 1e-4, 104 104 "The max was %f, should be %f", myStats->max, expectedMaxRangeWithMaskF32); 105 105 ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks"); … … 136 136 ok(result, "psVectorStats suceeded"); 137 137 ok(!isnan(myStats->max), "psVectorStats() returned non-NAN"); 138 ok_float_tol(myStats->max, expectedMaxNoMaskS8, 1e-4,138 is_float_tol(myStats->max, expectedMaxNoMaskS8, 1e-4, 139 139 "The max was %f, should be %f", myStats->max, expectedMaxNoMaskS8); 140 140 psFree(myStats); … … 157 157 ok(result, "psVectorStats suceeded"); 158 158 ok(!isnan(myStats->max), "psVectorStats() returned non-NAN"); 159 ok_float_tol(myStats->max, expectedMaxNoMaskU16, 1e-4,159 is_float_tol(myStats->max, expectedMaxNoMaskU16, 1e-4, 160 160 "The max was %f, should be %f", myStats->max, expectedMaxNoMaskU16); 161 161 psFree(myStats); … … 178 178 ok(result, "psVectorStats suceeded"); 179 179 ok(!isnan(myStats->max), "psVectorStats() returned non-NAN"); 180 ok_float_tol(myStats->max, expectedMaxNoMaskF64, 1e-4,180 is_float_tol(myStats->max, expectedMaxNoMaskF64, 1e-4, 181 181 "The max was %f, should be %f", myStats->max, expectedMaxNoMaskF64); 182 182 psFree(myStats);
Note:
See TracChangeset
for help on using the changeset viewer.
