test: update test codes to v4

This commit is contained in:
ToruNiina
2024-06-15 19:14:06 +09:00
parent 7c123ab378
commit c47ff10a64
69 changed files with 6792 additions and 8535 deletions

View File

@@ -0,0 +1,16 @@
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include "doctest.h"
#include "utility.hpp"
#include <toml11/syntax.hpp>
TEST_CASE("testing comment")
{
const auto scanner = toml::detail::syntax::comment(toml::spec::v(1,0,0));
test_scan_success(scanner, "# hoge", "# hoge");
test_scan_success(scanner, "# \n", "# ");
test_scan_success(scanner, "# \r\n", "# ");
test_scan_success(scanner, "# # \n", "# # ");
}