Skip to content

Commit

Permalink
one more format
Browse files Browse the repository at this point in the history
  • Loading branch information
PDoakORNL committed Jan 31, 2025
1 parent 8090610 commit b802536
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
*/
namespace qmcplusplus
{

TEST_CASE("NativePrint::array", "[utilities][for_testing]")
{
std::ostringstream oss;
Expand All @@ -51,11 +51,10 @@ TEST_CASE("NativePrint::unordered_map<std::string, std::vector<Vector<T>>>", "[u

std::ostringstream oss2;
std::unordered_map<std::string, std::vector<Vector<int>>> test_map2{{"alpha", {{0, 1}, {2}}},
{"beta", {{3}, {4}}},
{"lambda", {{6, 3}, {3, 3}}}};
{"beta", {{3}, {4}}},
{"lambda", {{6, 3}, {3, 3}}}};
oss2 << NativePrint(test_map2);
CHECK(std::string("{{{\"lambda\"}, {{6, 3, },{3, 3, }, }},\n{{\"beta\"}, {{3, },{4, }, "
"}},\n{{\"alpha\"}, {{0, 1, },{2, }, }},\n};") == oss2.str());

}
} // namespace qmcplusplus

0 comments on commit b802536

Please sign in to comment.