comparison tests/g1.h @ 0:d098192f01d9

Initial commit to the repository.
author Brian Neal <bgneal@gmail.com>
date Sat, 19 Mar 2011 19:53:12 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:d098192f01d9
1 #ifndef FRUCTOSE_MAIN_TEST_X1_H
2 #define FRUCTOSE_MAIN_TEST_X1_H
3
4 #include "fructose/fructose.h"
5
6 const int life_the_available_tests_and_everything = 42;
7 const int the_neighbour_of_the_beast = 668;
8 const int is_alive = 6;
9
10 FRUCTOSE_CLASS(sample_test)
11 {
12 public:
13 FRUCTOSE_TEST(test42)
14 {
15 fructose_assert(life_the_available_tests_and_everything == 6*7);
16 }
17
18 FRUCTOSE_TEST(beast)
19 {
20 fructose_assert(the_neighbour_of_the_beast == 668);
21 }
22
23 FRUCTOSE_TEST(fivealive)
24 {
25 const int five = 5;
26 fructose_assert_eq(five, is_alive);
27 }
28 };
29 #endif