mirror of
https://github.com/yhirose/cpp-peglib.git
synced 2024-12-22 11:55:30 +00:00
Added a unit test and updated playground
This commit is contained in:
parent
93d0489098
commit
3a56a15b0d
File diff suppressed because one or more lines are too long
BIN
docs/native.wasm
BIN
docs/native.wasm
Binary file not shown.
@ -233,6 +233,16 @@ TEST(InfiniteLoopTest, in_sequence) {
|
||||
EXPECT_FALSE(pg);
|
||||
}
|
||||
|
||||
TEST(InfiniteLoopTest, in_prioritized_choice) {
|
||||
parser pg(R"(
|
||||
S <- A*
|
||||
A <- 'a' / 'b' B
|
||||
B <- 'a' ''*
|
||||
)");
|
||||
|
||||
EXPECT_FALSE(pg);
|
||||
}
|
||||
|
||||
TEST(PrecedenceTest, Precedence_climbing) {
|
||||
parser parser(R"(
|
||||
START <- _ EXPRESSION
|
||||
|
Loading…
Reference in New Issue
Block a user