diff options
Diffstat (limited to '')
| -rw-r--r-- | src/tests/archive.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/tests/archive.cpp b/src/tests/archive.cpp deleted file mode 100644 index c905007..0000000 --- a/src/tests/archive.cpp +++ /dev/null | |||
| @@ -1,27 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (C) 2007-2011 Xagasoft, All rights reserved. | ||
| 3 | * | ||
| 4 | * This file is part of the libbu++ library and is released under the | ||
| 5 | * terms of the license contained in the file LICENSE. | ||
| 6 | */ | ||
| 7 | |||
| 8 | #include "bu/archive.h" | ||
| 9 | #include "bu/file.h" | ||
| 10 | #include "bu/string.h" | ||
| 11 | |||
| 12 | using namespace Bu; | ||
| 13 | |||
| 14 | int main() | ||
| 15 | { | ||
| 16 | File f("test.dat", File::WriteNew ); | ||
| 17 | Archive ar( f, Archive::save ); | ||
| 18 | |||
| 19 | Bu::String s("Hello there"); | ||
| 20 | ar << s; | ||
| 21 | |||
| 22 | ar.setProp("hi", 45 ); | ||
| 23 | printf("Hi: %d", ar.getProp<int>("hi") ); | ||
| 24 | |||
| 25 | return 0; | ||
| 26 | } | ||
| 27 | |||
