eliminated unused headers test_add.hpp, test_subtract.hp, etc.

The code in these haaders has been moved into test_add.cpp, test_subtract.cpp, etc.
This commit is contained in:
Robert Ramey
2015-05-29 14:48:07 -07:00
parent 471f1b85ec
commit ff4b3dca72
9 changed files with 33 additions and 698 deletions

View File

@@ -114,32 +114,34 @@ bool test_add(
#include "test.hpp"
#include "test_values.hpp"
// note: same test matrix as used in test_checked. Here we test all combinations
// safe and unsafe integers. in test_checked we test all combinations of
// integer primitives
const char *test_addition_result[VALUE_ARRAY_SIZE] = {
// 0 1 2 3
// 0 0 0 0
// 01234567012345670123456701234567
// 0 1 2 3
// 01234567890123456789012345678901
/* 0*/ ".........x...x.............x...x",
/* 1*/ ".........x...x.............x...x",
/* 2*/ "..........x...x.........x...x...",
/* 3*/ "..........x...x.................",
/* 2*/ "..........x...x.........xxxxxxxx",
/* 3*/ "..........x...x.........xxxxxxxx",
/* 4*/ ".........x...x.............x...x",
/* 5*/ ".........x...x.............x...x",
/* 6*/ "..........x...x.........x...x...",
/* 7*/ "..........x...x.................",
/* 6*/ "..........x...x.........xxxxxxxx",
/* 7*/ "..........x...x.........xxxxxxxx",
/* 8*/ ".........x...x.............x...x",
/* 9*/ "xx..xx..xx...x..xxxxxxxx...x...x",
/*10*/ "..xx..xx..xx..x.........xx..x...",
/*11*/ "..........x...x.................",
/*10*/ "..xx..xx..xx..x.........xxxxxxxx",
/*11*/ "..........x...x.........xxxxxxxx",
/*12*/ ".............x.................x",
/*13*/ "xx..xx..xx..xx..xxxxxxxxxxxx...x",
/*14*/ "..xx..xx..xx..xx............xx..",
/*15*/ "..............x.................",
/*14*/ "..xx..xx..xx..xx............xxxx",
/*15*/ "..............x.............xxxx",
// 0 1 2 3
// 0 0 0 0
// 01234567012345670123456701234567
// 0 1 2 3
// 01234567890123456789012345678901
/*16*/ ".........x...x.............x...x",
/*17*/ ".........x...x.............x...x",
@@ -150,14 +152,14 @@ const char *test_addition_result[VALUE_ARRAY_SIZE] = {
/*22*/ ".........x...x.............x...x",
/*23*/ ".........x...x.............x...x",
/*24*/ "..x...x...x..x.............x...x",
/*25*/ "..........x..x.............x...x",
/*26*/ ".............x............xx...x",
/*27*/ "xx..xx..xx...x..xxxxxxxxxxxx...x",
/*28*/ "..x...x...x...x................x",
/*29*/ "..............x................x",
/*30*/ "..............................xx",
/*31*/ "xx..xx..xx..xx..xxxxxxxxxxxxxxxx"
/*24*/ "..xx..xx..xx.x.............x...x",
/*25*/ "..xx..xx..xx.x.............x...x",
/*26*/ "..xx..xx..xx.x............xx...x",
/*27*/ "xxxxxxxxxxxx.x..xxxxxxxxxxxx...x",
/*28*/ "..xx..xx..xx..xx...............x",
/*29*/ "..xx..xx..xx..xx...............x",
/*30*/ "..xx..xx..xx..xx..............xx",
/*31*/ "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
};
#define TEST_IMPL(v1, v2, result) \