Mercurial > public > fructose_gen
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/x1.h Sat Mar 19 19:53:12 2011 -0500 @@ -0,0 +1,28 @@ +#ifndef FRUCTOSE_MAIN_TEST_X1_H +#define FRUCTOSE_MAIN_TEST_X1_H + +#include "fructose/fructose.h" + +const int life_the_available_tests_and_everything = 42; +const int the_neighbour_of_the_beast = 668; +const int is_alive = 6; + +struct sample_test : public fructose::test_base<sample_test> +{ + void test42(const std::string& test_name) + { + fructose_assert(life_the_available_tests_and_everything == 6*7); + } + + void testbeast(const std::string& test_name) + { + fructose_assert(the_neighbour_of_the_beast == 668); + } + + void testfivealive(const std::string& test_name) + { + const int five = 5; + fructose_assert_eq(five, is_alive); + } +}; +#endif