2018-12-11 21:51:39 +09:00
|
|
|
#include <toml/parser.hpp>
|
2022-09-16 13:16:01 +02:00
|
|
|
|
|
|
|
#include "unit_test.hpp"
|
2018-12-11 21:51:39 +09:00
|
|
|
#include "test_parse_aux.hpp"
|
|
|
|
|
|
|
|
using namespace toml;
|
|
|
|
using namespace detail;
|
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(test_boolean)
|
|
|
|
{
|
|
|
|
TOML11_TEST_PARSE_EQUAL(parse_boolean, "true", true);
|
|
|
|
TOML11_TEST_PARSE_EQUAL(parse_boolean, "false", false);
|
|
|
|
}
|
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(test_boolean_value)
|
|
|
|
{
|
2019-06-03 22:01:16 +09:00
|
|
|
TOML11_TEST_PARSE_EQUAL_VALUE(parse_value<toml::value>, "true", toml::value( true));
|
|
|
|
TOML11_TEST_PARSE_EQUAL_VALUE(parse_value<toml::value>, "false", toml::value(false));
|
2018-12-11 21:51:39 +09:00
|
|
|
}
|