Skip to content

Commit

Permalink
adding parsing tests for wff_bex and wff_ball
Browse files Browse the repository at this point in the history
  • Loading branch information
castrod committed Jan 9, 2024
1 parent 2b92cd5 commit d57837d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tests/unit/test_tau_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,32 @@ TEST_SUITE("parsing wwf formulas ") {
CHECK( ex_formula.has_value() );
}

TEST_CASE("ball") {
const char* sample =
"ball ?Z ?Z.";
auto src = make_tau_source(sample);
auto frml = make_statement(src);
auto all_formula = frml
| tau_parser::formula
| tau_parser::main
| tau_parser::wff
| tau_parser::wff_ball;
CHECK( all_formula.has_value() );
}

TEST_CASE("bex") {
const char* sample =
"bex ?Z ?Z.";
auto src = make_tau_source(sample);
auto frml = make_statement(src);
auto ex_formula = frml
| tau_parser::formula
| tau_parser::main
| tau_parser::wff
| tau_parser::wff_bex;
CHECK( ex_formula.has_value() );
}

// TODO (LOW) write test wwf refs
TEST_CASE("wff_ref") {
//CHECK( false );
Expand Down

0 comments on commit d57837d

Please sign in to comment.