File: unittest_tester.cu

package info (click to toggle)
python-escript 5.6-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 144,252 kB
  • sloc: python: 592,062; cpp: 136,909; ansic: 18,675; javascript: 9,411; xml: 3,384; sh: 740; makefile: 203
file content (24 lines) | stat: -rw-r--r-- 419 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <unittest/unittest.h>

void TestAssertEqual(void)
{
    ASSERT_EQUAL(0, 0);
    ASSERT_EQUAL(1, 1);
    ASSERT_EQUAL(-15.0f, -15.0f);
}
DECLARE_UNITTEST(TestAssertEqual);

void TestAssertLEqual(void)
{
    ASSERT_LEQUAL(0, 1);
    ASSERT_LEQUAL(0, 0);
}
DECLARE_UNITTEST(TestAssertLEqual);

void TestAssertGEqual(void)
{
    ASSERT_GEQUAL(1, 0);
    ASSERT_GEQUAL(0, 0);
}
DECLARE_UNITTEST(TestAssertGEqual);