bgneal@0: #ifndef FRUCTOSE_MAIN_TEST_X1_H bgneal@0: #define FRUCTOSE_MAIN_TEST_X1_H bgneal@0: bgneal@0: #include "fructose/fructose.h" bgneal@0: bgneal@0: const int life_the_available_tests_and_everything = 42; bgneal@0: const int the_neighbour_of_the_beast = 668; bgneal@0: const int is_alive = 6; bgneal@0: bgneal@0: struct sample_test : public fructose::test_base bgneal@0: { bgneal@0: void test42(const std::string& test_name) bgneal@0: { bgneal@0: fructose_assert(life_the_available_tests_and_everything == 6*7); bgneal@0: } bgneal@0: bgneal@0: void testbeast(const std::string& test_name) bgneal@0: { bgneal@0: fructose_assert(the_neighbour_of_the_beast == 668); bgneal@0: } bgneal@0: bgneal@0: void testfivealive(const std::string& test_name) bgneal@0: { bgneal@0: const int five = 5; bgneal@0: fructose_assert_eq(five, is_alive); bgneal@0: } bgneal@0: }; bgneal@0: #endif