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