update testing macro

This commit is contained in:
ToruNiina
2018-12-11 23:25:23 +09:00
parent fc6a15440d
commit e79e6150f2
4 changed files with 63 additions and 63 deletions

View File

@@ -21,11 +21,11 @@ do { \
} while(false); \
/**/
#define TOML11_TEST_PARSE_EQUAL_VALUE(tkn, expct) \
#define TOML11_TEST_PARSE_EQUAL_VALUE(psr, tkn, expct) \
do { \
const std::string token(tkn); \
toml::detail::location<std::string> loc("test", token); \
const auto result = toml::detail::parse_value(loc); \
const auto result = psr(loc); \
BOOST_CHECK(result.is_ok()); \
if(result.is_ok()){ \
BOOST_CHECK(result.unwrap() == expct); \