Skip to content

Commit fe197ba

Browse files
authored
Update a DefaultVal test to the error message from munich-data-engineering#779 (munich-data-engineering#782)
1 parent 1b0a470 commit fe197ba

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎tests/json/test_default_val_throwing_initializer.cpp‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ TEST(json, test_default_val_throwing_initializer_is_an_error_when_reading) {
2929
const auto res = rfl::json::read<InvalidInitializer>(R"({"retries":3})");
3030
ASSERT_FALSE(res);
3131
EXPECT_EQ(res.error().what(),
32-
"Value expected to be greater than or equal to 1, but got 0.");
32+
"Could not default-construct "
33+
"test_default_val_throwing_initializer::InvalidInitializer, which "
34+
"is required because it contains rfl::DefaultVal. Give every field "
35+
"a valid default value. Original error: Value expected to be "
36+
"greater than or equal to 1, but got 0.");
3337
}
3438

3539
TEST(json, test_default_val_throwing_initializer_valid_default_is_used) {

0 commit comments

Comments
 (0)