From f9a018b5ea3f04ebf575087e659dc82fe4f098f2 Mon Sep 17 00:00:00 2001 From: ToruNiina Date: Wed, 5 Dec 2018 17:19:37 +0900 Subject: [PATCH] add source_name to test_lex_aux macros --- tests/test_lex_aux.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_lex_aux.hpp b/tests/test_lex_aux.hpp index 9babc0f..8ee18e8 100644 --- a/tests/test_lex_aux.hpp +++ b/tests/test_lex_aux.hpp @@ -8,7 +8,7 @@ do { \ const std::string token (tkn); \ const std::string expected(expct); \ - toml::detail::location loc(token); \ + toml::detail::location loc("test", token); \ const auto result = lxr::invoke(loc); \ BOOST_CHECK(result.is_ok()); \ if(result.is_ok()){ \ @@ -27,7 +27,7 @@ do { \ #define TOML11_TEST_LEX_REJECT(lxr, tkn) \ do { \ const std::string token (tkn); \ - toml::detail::location loc(token); \ + toml::detail::location loc("test", token); \ const auto result = lxr::invoke(loc); \ BOOST_CHECK(result.is_err()); \ BOOST_CHECK(loc.begin() == loc.iter()); \