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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user