Loading test/unit/io/json_reader_input.json +1 −1 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ "bool 3" : 1, "bool 4" : 0 }, "vec int" : [1, 2, 3], "vec vec string" : [["aa", "ab"], ["ba", "bc"]], "vec vec int" : [[11, 12], [21,11]], Loading test/unit/io/json_reader_test.cpp +6 −1 Original line number Diff line number Diff line #include "gtest/gtest.h" #include "dca/testing/gtest_h_w_warning_blocking.h" #include "dca/io/json/json_reader.hpp" Loading Loading @@ -63,6 +63,11 @@ TEST(ReadTest, All) { EXPECT_EQ(b, false); reader.close_group(); std::vector<int> vi; reader.execute("vec int", vi); const std::vector<int> vi_check{1, 2, 3}; EXPECT_EQ(vi, vi_check); reader.execute("vec vec string", vvs); const std::vector<std::vector<std::string>> vvs_check{std::vector<std::string>{"aa", "ab"}, std::vector<std::string>{"ba", "bc"}}; Loading Loading
test/unit/io/json_reader_input.json +1 −1 Original line number Diff line number Diff line Loading @@ -20,7 +20,7 @@ "bool 3" : 1, "bool 4" : 0 }, "vec int" : [1, 2, 3], "vec vec string" : [["aa", "ab"], ["ba", "bc"]], "vec vec int" : [[11, 12], [21,11]], Loading
test/unit/io/json_reader_test.cpp +6 −1 Original line number Diff line number Diff line #include "gtest/gtest.h" #include "dca/testing/gtest_h_w_warning_blocking.h" #include "dca/io/json/json_reader.hpp" Loading Loading @@ -63,6 +63,11 @@ TEST(ReadTest, All) { EXPECT_EQ(b, false); reader.close_group(); std::vector<int> vi; reader.execute("vec int", vi); const std::vector<int> vi_check{1, 2, 3}; EXPECT_EQ(vi, vi_check); reader.execute("vec vec string", vvs); const std::vector<std::vector<std::string>> vvs_check{std::vector<std::string>{"aa", "ab"}, std::vector<std::string>{"ba", "bc"}}; Loading