2
0
mirror of https://github.com/boostorg/parser.git synced 2026-02-01 08:42:14 +00:00

Remove the documentation section "An Odd Case", which was obviated by the

previous commit.  Also remove the test cases that exercised that case.
This commit is contained in:
Zach Laine
2024-01-01 15:28:05 -06:00
parent d34d4b7e6a
commit 24d18b4eaf
3 changed files with 0 additions and 90 deletions

View File

@@ -1720,26 +1720,6 @@ TEST(parser, combined_seq_and_or)
}
}
#if 0 // TODO
{
constexpr auto parser = string("a") >> string("b") >> string("c") |
string("x") >> string("y") >> string("z");
{
char const * str = "abc";
std::any chars;
EXPECT_TRUE(parse(str, parser, chars));
EXPECT_EQ(std::any_cast<std::string>(chars), "c");
}
{
char const * str = "xyz";
std::string chars;
EXPECT_TRUE(parse(str, parser, chars));
EXPECT_EQ(chars, "xyz");
}
}
#endif
{
constexpr auto parser = !char_('a');
char const * str = "a";