From a77e41eee42b99282c05d268479ba5ebb11dc095 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 11 Oct 2006 15:54:09 +0000 Subject: Rearranged the tests, now it's like the old style, which I like more for some reason. --- src/tests/serialize/serialize.cpp | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 src/tests/serialize/serialize.cpp (limited to 'src/tests/serialize') diff --git a/src/tests/serialize/serialize.cpp b/src/tests/serialize/serialize.cpp deleted file mode 100644 index e233704..0000000 --- a/src/tests/serialize/serialize.cpp +++ /dev/null @@ -1,30 +0,0 @@ -#include "serializerbinary.h" -#include "staticstring.h" -#include -#include - -int main() -{ - int32_t one; - double two; - bool three; - StaticString s("Test string!"); - std::string ss("Another test string"); - SerializerBinary ar("hello.dat", false); - ar << (int)85; - ar << (double)2.63434; - ar << false; - ar << ss; - ar.close(); - - one = 0; two = 0; three = true; s = "die"; - - SerializerBinary ar2("hello.dat", true); - ar2 >> one; - ar2 >> two; - ar2 >> three; - ar2 >> s; - - printf("we got %d - %f - %s - \"%s\"\n", one, two, (three ? "true":"false"), s.getString() ); - return 0; -} -- cgit v1.2.3