diff options
author | Claudius Holeksa <mail@keldu.de> | 2023-06-28 11:28:08 +0200 |
---|---|---|
committer | Claudius Holeksa <mail@keldu.de> | 2023-06-28 11:28:08 +0200 |
commit | bffc83b7c2c89938300b823991882cef1ddb3f12 (patch) | |
tree | d0f6f2333461ae12a27783202b71395569715ee1 /tests | |
parent | 8c9d5c54a4510a992ca7c409ccd4d359ed499250 (diff) |
c++,tests: Ammended test name to reflect what it does
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"){ |