3 WVTEST_MAIN("wvtest tests")
15 WVPASSEQ("hello", "hello");
16 WVPASSNE("hello", "hello2");
18 WVPASSEQ(std::string("hello"), std::string("hello"));
19 WVPASSNE(std::string("hello"), std::string("hello2"));
22 WVTEST_MAIN("wvtest type double tests")
24 /* WVPASSEQ_DOUBLE(actual,expected,tolerance) */
25 WVPASSEQ_DOUBLE(10, 10.000001, 0.00001);
26 WVPASSEQ_DOUBLE(10, 10.000001, -0.00001);
27 WVPASSEQ_DOUBLE(-10,-10.000001, 0.00001);
28 WVPASSEQ_DOUBLE(-10, -10.000001, -0.00001);
30 WVPASSEQ_DOUBLE(10, 10.000001, 0.000001);
31 WVPASSEQ_DOUBLE(10, 10.000001, -0.000001);
32 WVPASSEQ_DOUBLE(-10, -10.000001, 0.000001);
33 WVPASSEQ_DOUBLE(-10, -10.000001, -0.000001);
35 WVPASSNE_DOUBLE(10, 10.00001, 0.000001);
36 WVPASSNE_DOUBLE(10, 10.00001, -0.000001);
37 WVPASSNE_DOUBLE(-10, -10.00001, 0.000001);
38 WVPASSNE_DOUBLE(-10, -10.00001, -0.000001);
40 WVPASSNE_DOUBLE(10, 10.0001, 0.000001);
41 WVPASSNE_DOUBLE(10, 10.0001, -0.000001);
42 WVPASSNE_DOUBLE(-10, -10.0001, 0.000001);
43 WVPASSNE_DOUBLE(-10, -10.0001, -0.000001);