mirror of
https://github.com/red0124/ssp.git
synced 2025-12-14 21:59:55 +01:00
replace error_mode String and Bool with error_string and error_bool
This commit is contained in:
@@ -330,7 +330,7 @@ TEST_CASE("testing error mode") {
|
||||
CHECK(!c.valid());
|
||||
CHECK(c.error_msg().empty());
|
||||
|
||||
c.set_error_mode(ss::error_mode::String);
|
||||
c.set_error_mode(ss::error_mode::error_string);
|
||||
c.convert<int>("junk");
|
||||
CHECK(!c.valid());
|
||||
CHECK(!c.error_msg().empty());
|
||||
|
||||
@@ -186,7 +186,7 @@ TEST_CASE("testing composite conversion") {
|
||||
}
|
||||
|
||||
ss::parser p{f.name, ","};
|
||||
p.set_error_mode(ss::error_mode::String);
|
||||
p.set_error_mode(ss::error_mode::error_string);
|
||||
auto fail = [] { FAIL(""); };
|
||||
auto expect_error = [](auto error) { CHECK(!error.empty()); };
|
||||
|
||||
@@ -455,7 +455,7 @@ TEST_CASE("testing error mode") {
|
||||
CHECK(!p.valid());
|
||||
CHECK(p.error_msg().empty());
|
||||
|
||||
p.set_error_mode(ss::error_mode::String);
|
||||
p.set_error_mode(ss::error_mode::error_string);
|
||||
|
||||
REQUIRE(!p.eof());
|
||||
p.get_next<int>();
|
||||
|
||||
Reference in New Issue
Block a user