Skip to content

Commit

Permalink
Add test for stringify
Browse files Browse the repository at this point in the history
  • Loading branch information
dagardner-nv committed Apr 1, 2024
1 parent dc9ddbf commit bcfeafb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/mrc/_pymrc/tests/test_json_values.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -523,3 +523,9 @@ TEST_F(TestJSONValues, SubscriptOptError)
}
}
}

TEST_F(TestJSONValues, Stringify)
{
auto dec_val = mk_decimal("2.2"s);
EXPECT_EQ(JSONValues::stringify(dec_val, "/"s), nlohmann::json("2.2"s));
}

0 comments on commit bcfeafb

Please sign in to comment.