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

Add round trip test suite #114

Open
valencik opened this issue Feb 2, 2024 · 0 comments
Open

Add round trip test suite #114

valencik opened this issue Feb 2, 2024 · 0 comments

Comments

@valencik
Copy link
Collaborator

valencik commented Feb 2, 2024

Add a test suite where we can easily list various queries in string format and assert the following relationship:

val qStr: String = ???
val q = parse(qStr)
assertEquals(q, parse(print(q)))
val q: Query = ???
val qStr = print(q)
assertEquals(qStr, print(parse(qStr)))

Gotcha's

  • The comparisons on Boost will be tricky, particularly because we can specify the precision while printing.
  • We don't yet handle configuring a default boolean which might hurt us
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant