noir-lang / noir

Noir is a domain specific language for zero knowledge proofs
https://noir-lang.org
Apache License 2.0
821 stars 177 forks source link

chore: refactor test case generation in build.rs #5280

Closed TomAFrench closed 1 week ago

TomAFrench commented 2 weeks ago

Description

Problem*

Resolves

Summary*

The build.rs file for generating the test cases is getting a bit unmanagable imo. This PR factors out some repeated code and adds a new helper function so we just need to pass in the body of the test.

Additional Context

Documentation*

Check one:

PR Checklist*