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

chore: Refactor parser tests (with concat!()) #3500

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

pczarn
Copy link
Contributor

@pczarn pczarn commented Nov 16, 2023

Description

Problem*

The tests that I added to parser are quite unreadable.

Summary*

Uses concat! macro to make multiline pieces of code. Adds a helper function to test mutiple cases and check their errors given a parser function.

Documentation*

Check one:

  • No documentation needed.
  • Documentation included in this PR.
  • [Exceptional Case] Documentation to be submitted in a separate PR.

PR Checklist*

  • I have tested the changes locally.
  • I have formatted the changes with Prettier and/or cargo fmt on default settings.

@pczarn pczarn changed the title (chore) Refactor parser tests (with concat!()) chore: Refactor parser tests (with concat!()) Nov 16, 2023
@pczarn pczarn force-pushed the refactor-parser-tests branch from b5f0d9b to 0cc6c00 Compare November 16, 2023 18:45
@pczarn
Copy link
Contributor Author

pczarn commented Nov 16, 2023

@jfecher will you review?

@pczarn
Copy link
Contributor Author

pczarn commented Nov 16, 2023

What is gates diff, and why is it failing here?

@jfecher
Copy link
Contributor

jfecher commented Nov 16, 2023

@pczarn looks like it was just a network issue failing the test.

@jfecher jfecher added this pull request to the merge queue Nov 16, 2023
Merged via the queue into noir-lang:master with commit 5c006ce Nov 16, 2023
33 checks passed
TomAFrench added a commit that referenced this pull request Nov 17, 2023
* master:
  chore: update `async-lsp` to v0.1.0 (#3489)
  fix: adding proving key initialization (#3322)
  chore(fmt): don't lose line breaks between comments (#3505)
  feat: Add LSP command to profile opcodes in vscode (#3496)
  chore: format integration tests (#3399)
  chore: Refactor parser tests (with concat!()) (#3500)
  chore: format function signature (#3495)
  chore: update `self_cell` to v1.0.2 (#3487)
  chore: Fix broken link (#3497)
  chore: update array formatting style (#3486)
  chore(fmt): add fn_call_width (#3480)
  chore: Fix undesirable line break before '{' in function signature with comments (#3473)
  fix: apply predicate to over/underflow checks (#3494)
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

Successfully merging this pull request may close these issues.

2 participants