diff options
Diffstat (limited to '')
-rw-r--r-- | src/tests/archive.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tests/archive.cpp b/src/tests/archive.cpp index a0bc78a..08e3b17 100644 --- a/src/tests/archive.cpp +++ b/src/tests/archive.cpp | |||
@@ -13,12 +13,15 @@ using namespace Bu; | |||
13 | 13 | ||
14 | int main() | 14 | int main() |
15 | { | 15 | { |
16 | File f("test.dat", File::Write ); | 16 | File f("test.dat", File::WriteNew ); |
17 | Archive ar( f, Archive::save ); | 17 | Archive ar( f, Archive::save ); |
18 | 18 | ||
19 | Bu::FString s("Hello there"); | 19 | Bu::FString s("Hello there"); |
20 | ar << s; | 20 | ar << s; |
21 | 21 | ||
22 | ar.setProp("hi", 45 ); | ||
23 | printf("Hi: %d", ar.getProp<int>("hi") ); | ||
24 | |||
22 | return 0; | 25 | return 0; |
23 | } | 26 | } |
24 | 27 | ||