supply test definition

This commit is contained in:
Fischlurch 2009-05-31 02:41:00 +02:00
parent e0ad992f30
commit e8c25fca0a
3 changed files with 9 additions and 4 deletions

View file

@ -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{

View file

@ -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

View file

@ -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;