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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add UI tests for parse errors #261

Open
lambda-fairy opened this issue Feb 24, 2021 · 1 comment
Open

Add UI tests for parse errors #261

lambda-fairy opened this issue Feb 24, 2021 · 1 comment

Comments

@lambda-fairy
Copy link
Owner

lambda-fairy commented Feb 24, 2021

For historical reasons, Maud doesn't have good test coverage for its diagnostics. In fact, at the moment there is only one such test 馃様 The lack of tests will block further changes (e.g. #208, #215) so we should address this.

For a list of things to test, go to parse.rs and search for abort! and abort_call_site!.

@lambda-fairy
Copy link
Owner Author

lambda-fairy commented Feb 24, 2021

  • unexpected end of input - Add more UI tests聽#262
  • @let only works inside a block
  • unknown keyword @{}
  • expected keyword after @
  • found keyword {}
  • invalid syntax
  • expected string - Add more UI tests聽#262
  • expected body for this @if
  • expected body for this @else
  • expected body for this @while
  • missing in in @for loop
  • expected body for this @for
  • expected body for this @match
  • unexpected end of @match pattern
  • unexpected end of @match arm
  • unexpected end of @let expression
  • unexpected end of @let expression (are you missing a semicolon?)
  • unexpected element
  • element body must be wrapped in braces
  • duplicate attribute {}

lambda-fairy added a commit that referenced this issue Feb 24, 2021
lambda-fairy added a commit that referenced this issue Mar 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant