Mercurial > public > fructose_gen
annotate tests/g1.h @ 3:d8aeeb7f6785 fructose1.1.0
Changed the license to LGPL to be compatible with Fructose itself.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 14 May 2011 14:20:44 -0500 |
parents | d098192f01d9 |
children |
rev | line source |
---|---|
bgneal@0 | 1 #ifndef FRUCTOSE_MAIN_TEST_X1_H |
bgneal@0 | 2 #define FRUCTOSE_MAIN_TEST_X1_H |
bgneal@0 | 3 |
bgneal@0 | 4 #include "fructose/fructose.h" |
bgneal@0 | 5 |
bgneal@0 | 6 const int life_the_available_tests_and_everything = 42; |
bgneal@0 | 7 const int the_neighbour_of_the_beast = 668; |
bgneal@0 | 8 const int is_alive = 6; |
bgneal@0 | 9 |
bgneal@0 | 10 FRUCTOSE_CLASS(sample_test) |
bgneal@0 | 11 { |
bgneal@0 | 12 public: |
bgneal@0 | 13 FRUCTOSE_TEST(test42) |
bgneal@0 | 14 { |
bgneal@0 | 15 fructose_assert(life_the_available_tests_and_everything == 6*7); |
bgneal@0 | 16 } |
bgneal@0 | 17 |
bgneal@0 | 18 FRUCTOSE_TEST(beast) |
bgneal@0 | 19 { |
bgneal@0 | 20 fructose_assert(the_neighbour_of_the_beast == 668); |
bgneal@0 | 21 } |
bgneal@0 | 22 |
bgneal@0 | 23 FRUCTOSE_TEST(fivealive) |
bgneal@0 | 24 { |
bgneal@0 | 25 const int five = 5; |
bgneal@0 | 26 fructose_assert_eq(five, is_alive); |
bgneal@0 | 27 } |
bgneal@0 | 28 }; |
bgneal@0 | 29 #endif |