/[escript]/branches/diaplayground/cusplibrary/testing/unittest_tester.cu
ViewVC logotype

Contents of /branches/diaplayground/cusplibrary/testing/unittest_tester.cu

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4955 - (show annotations)
Tue May 20 04:33:15 2014 UTC (5 years, 4 months ago) by caltinay
File size: 419 byte(s)
added pristine copy of cusplibrary (apache license) to be used by ripley.

1 #include <unittest/unittest.h>
2
3 void TestAssertEqual(void)
4 {
5 ASSERT_EQUAL(0, 0);
6 ASSERT_EQUAL(1, 1);
7 ASSERT_EQUAL(-15.0f, -15.0f);
8 }
9 DECLARE_UNITTEST(TestAssertEqual);
10
11 void TestAssertLEqual(void)
12 {
13 ASSERT_LEQUAL(0, 1);
14 ASSERT_LEQUAL(0, 0);
15 }
16 DECLARE_UNITTEST(TestAssertLEqual);
17
18 void TestAssertGEqual(void)
19 {
20 ASSERT_GEQUAL(1, 0);
21 ASSERT_GEQUAL(0, 0);
22 }
23 DECLARE_UNITTEST(TestAssertGEqual);
24

  ViewVC Help
Powered by ViewVC 1.1.26