diff options
author | Mike Buland <mbuland@penny-arcade.com> | 2017-08-23 06:36:55 -0700 |
---|---|---|
committer | Mike Buland <mbuland@penny-arcade.com> | 2017-08-23 06:36:55 -0700 |
commit | b82c6e251b995353ce205bbd53f3db2b985c5345 (patch) | |
tree | e633d576ddb3783c40e3c0e7e39b0f51fe09cbbc /src/tests/json.cpp | |
parent | 320c4811b16f1e50fc94203728f05f0c10e915d1 (diff) | |
download | libbu++-b82c6e251b995353ce205bbd53f3db2b985c5345.tar.gz libbu++-b82c6e251b995353ce205bbd53f3db2b985c5345.tar.bz2 libbu++-b82c6e251b995353ce205bbd53f3db2b985c5345.tar.xz libbu++-b82c6e251b995353ce205bbd53f3db2b985c5345.zip |
Fixed string constructor.
Diffstat (limited to 'src/tests/json.cpp')
-rw-r--r-- | src/tests/json.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tests/json.cpp b/src/tests/json.cpp index 7c1c119..d588a02 100644 --- a/src/tests/json.cpp +++ b/src/tests/json.cpp | |||
@@ -5,6 +5,13 @@ | |||
5 | 5 | ||
6 | int main( int argc, char *argv[] ) | 6 | int main( int argc, char *argv[] ) |
7 | { | 7 | { |
8 | Bu::Json j("Hi there"); | ||
9 | Bu::println( j.toString() ); | ||
10 | return 0; | ||
11 | } | ||
12 | |||
13 | void hi() | ||
14 | { | ||
8 | Bu::File fIn( "test1.json", Bu::File::Read ); | 15 | Bu::File fIn( "test1.json", Bu::File::Read ); |
9 | Bu::Json ob( fIn ); | 16 | Bu::Json ob( fIn ); |
10 | ob.write( Bu::sioRaw ); | 17 | ob.write( Bu::sioRaw ); |