supply test definition
This commit is contained in:
parent
e0ad992f30
commit
e8c25fca0a
3 changed files with 9 additions and 4 deletions
|
|
@ -23,13 +23,12 @@
|
|||
|
||||
#include "lib/test/test-helper.hpp"
|
||||
|
||||
//#include "lib/error.hpp"
|
||||
#include <boost/format.hpp>
|
||||
#include <typeinfo>
|
||||
|
||||
using boost::format;
|
||||
using boost::str;
|
||||
|
||||
|
||||
namespace lib {
|
||||
namespace test{
|
||||
|
||||
|
|
|
|||
|
|
@ -368,7 +368,13 @@ END
|
|||
|
||||
TEST "Test support functions" TestHelper_test <<END
|
||||
out: Displaying types and sizes....
|
||||
out: --> Testgroup=ALL
|
||||
out: sizeof..theUniverse.+ = 42
|
||||
out: sizeof..just a char.+ = 1
|
||||
out: sizeof.+lib.+test.+test.+Murpf.+ = 1
|
||||
out: sizeof.+lib.+test.+test.+Wrmrmpft.+Murpf.+ = 1
|
||||
out: sizeof.+lib.+test.+test.+Wrmrmpft.+ = 2
|
||||
out: sizeof.+lib.+test.+test.+Wrmrmpft.+ = 3
|
||||
out: sizeof.+lib.+test.+test.+Wrmrmpft.+Murpf.+ = 1
|
||||
END
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ namespace test{
|
|||
ASSERT (2 == sizeof (rmpf2));
|
||||
ASSERT (3 == sizeof (rmpf3));
|
||||
|
||||
cout << showSizeof(42,"theUniverse") << endl;
|
||||
cout << showSizeof((size_t)42,"theUniverse") << endl;
|
||||
cout << showSizeof<char>("just a char") << endl;
|
||||
cout << showSizeof(murpf) << endl;
|
||||
cout << showSizeof(rmpf1) << endl;
|
||||
|
|
|
|||
Loading…
Reference in a new issue