Ajout de l'ensemble du workspace.
[GPU.git] / WCudaMSE / Tuto_CppTest / src / cpp / test / junit / TestScalarJunit.h
1 #ifndef TEST_SCALAR_JUNIT_H
2 #define TEST_SCALAR_JUNIT_H
3
4 #include "cpptest.h"
5 #include "scalar.h"
6
7
8
9 class TestScalarJunit: public Test::Suite
10 {
11 public:
12
13 TestScalarJunit(void)
14 {
15 TEST_ADD(TestScalarJunit::testAdd);
16 TEST_ADD(TestScalarJunit::testFois);
17 }
18
19 private:
20
21 void testAdd(void)
22 {
23 TEST_ASSERT(sum(2,3)==5);
24 TEST_ASSERT(sum(-2,3)==1.0);
25 }
26
27 void testFois(void)
28 {
29 TEST_ASSERT(fois(2,3)==6);
30 TEST_ASSERT(fois(-2,3)==-6);
31 }
32 };
33
34 #endif
35
36 /*----------------------------------------------------------------------*\
37 |* End *|
38 \*---------------------------------------------------------------------*/
39
40