diff options
author | deva <deva> | 2011-02-17 11:00:14 +0000 |
---|---|---|
committer | deva <deva> | 2011-02-17 11:00:14 +0000 |
commit | db144840aba95affb3a6b5b2536059f49f0677ff (patch) | |
tree | 1c397a20aa5745c6bbb5dee6a4409f58c4542e87 /server/src/utf8.cc | |
parent | c8651b8c89673300477ab86962640c93216ea306 (diff) |
Rewrite of all old tests to new unittest framework. Also some work on testdb; more to come...
Diffstat (limited to 'server/src/utf8.cc')
-rw-r--r-- | server/src/utf8.cc | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/server/src/utf8.cc b/server/src/utf8.cc index 2909a94..f43d858 100644 --- a/server/src/utf8.cc +++ b/server/src/utf8.cc @@ -344,9 +344,13 @@ std::string UTF8::decode(std::string s) } #ifdef TEST_UTF8 +//deps: exception.cc log.cc +//cflags: -I.. +//libs: +#include <test.h> + +TEST_BEGIN; -int main() -{ try { UTF8 utf8("ISO-8859-1"); @@ -363,12 +367,11 @@ int main() if(a == c) return 0; else return 1; - } catch( Pentominos::Exception &e ) { + } catch(Exception &e) { fprintf(stderr, "%s\n", e.what()); return 1; } - return 0; -} +TEST_END; #endif//TEST_UTF8 |