Mercurial > public > fructose_gen
annotate tests/x1.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 |
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 struct sample_test : public fructose::test_base<sample_test> |
bgneal@0 | 11 { |
bgneal@0 | 12 void test42(const std::string& test_name) |
bgneal@0 | 13 { |
bgneal@0 | 14 fructose_assert(life_the_available_tests_and_everything == 6*7); |
bgneal@0 | 15 } |
bgneal@0 | 16 |
bgneal@0 | 17 void testbeast(const std::string& test_name) |
bgneal@0 | 18 { |
bgneal@0 | 19 fructose_assert(the_neighbour_of_the_beast == 668); |
bgneal@0 | 20 } |
bgneal@0 | 21 |
bgneal@0 | 22 void testfivealive(const std::string& test_name) |
bgneal@0 | 23 { |
bgneal@0 | 24 const int five = 5; |
bgneal@0 | 25 fructose_assert_eq(five, is_alive); |
bgneal@0 | 26 } |
bgneal@0 | 27 }; |
bgneal@0 | 28 #endif |