diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/codec-json.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/codec-json.cpp b/tests/codec-json.cpp index 9406a5c..e6ecf35 100644 --- a/tests/codec-json.cpp +++ b/tests/codec-json.cpp @@ -249,7 +249,7 @@ SAW_TEST("Array write"){ SAW_EXPECT(enc_val == str_v, std::string{"Array not encoded correctly. Encoded: "} + enc_val + std::string{" Expected: "} + std::string{str_v}); } -SAW_TEST("Three Dim Array write"){ +SAW_TEST("Three Dim Array write and read"){ using namespace saw; data<schema::TestMultiArray, encode::Native> native{2,1,2}; data<schema::TestMultiArray, encode::Json> json; @@ -296,14 +296,13 @@ SAW_TEST("Struct write"){ std::string enc_val = convert_to_string(json.get_buffer()); SAW_EXPECT(enc_val == str_v, std::string{"Struct not encoded correctly. Encoded: "} + enc_val + std::string{" Expected: "} + std::string{str_v}); - - /* +/* native = {}; eov = json_codec.decode(json, native); SAW_EXPECT(eov.is_value(), "Decoding error"); SAW_EXPECT(native.get<"foo">().get() == 5, "Invalid value for foo"); - SAW_EXPECT(native.get<"bar">().get() == "baz", "Invalid value for bar"); - */ + SAW_EXPECT(native.get<"bar">() == "baz", "Invalid value for bar"); +*/ } SAW_TEST("Int8 read"){ |