File indexing completed on 2024-05-19 04:32:47
0001 /* 0002 * Copyright 2004, The University of Toronto 0003 * Licensed under GPL. 0004 */ 0005 0006 #ifndef KSTTESTCASE_H 0007 #define KSTTESTCASE_H 0008 #include <assert.h> 0009 #include <kapplication.h> 0010 #include <kstdatacollection.h> 0011 #include <math.h> 0012 #include <stdio.h> 0013 #include <stdlib.h> 0014 0015 #ifdef NAN 0016 double NOPOINT = NAN; 0017 #else 0018 double NOPOINT = 0.0/0.0; // NaN 0019 #endif 0020 0021 #ifndef INF 0022 double INF = 1.0/0.0; 0023 #endif 0024 0025 0026 #define KstTestSuccess 0 0027 #define KstTestFailure -1 0028 #define KstTestFailed() rc-- 0029 0030 #endif 0031 0032 // vim: ts=2 sw=2 et