Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

put parse trees in database order #173

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix tests
  • Loading branch information
digama0 committed Oct 28, 2024
commit ac35fdae3b3d0e3720d8ffad55e951d60eeee42b
4 changes: 2 additions & 2 deletions metamath-rs/src/grammar_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ fn test_db_43_formula() {
let formula = stmt_parse.get_formula(&sref).unwrap().as_ref(&db);
assert_eq!(
formula.as_sexpr(),
"(weq (cab vx (wa (wcel (cv vx) cA) wph)) cB)"
"(weq (cab (wa (wcel (cv vx) cA) wph) vx) cB)"
);
}
}
Expand Down Expand Up @@ -312,7 +312,7 @@ fn test_garden_path_3() {
let formula = stmt_parse.get_formula(&sref).unwrap();
assert_eq!(
formula.as_ref(&db).as_sexpr(),
"(weq cA (copab vx vy cB (weq cC cD)))"
"(weq cA (copab (weq cC cD) cB vx vy))"
);
}

Expand Down
Loading