Skip to content

Commit

Permalink
test: run tests on generated data
Browse files Browse the repository at this point in the history
  • Loading branch information
ivokub committed Jan 15, 2025
1 parent 8183cb7 commit 874ec8e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions prover/zkevm/prover/ecpair/ecpair_with_circuit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,22 @@ func TestMembershipCircuit(t *testing.T) {
testModule(t, tc, false, true, false, true)
}
}

func TestGeneratedData(t *testing.T) {
var generatedData []pairingDataTestCase
filepath.Walk("testdata/generated", func(path string, info os.FileInfo, err error) error {
if strings.HasSuffix(path, "input.csv") {
tc := pairingDataTestCase{
InputFName: path,
NbMillerLoops: 5,
NbFinalExps: 1,
NbSubgroupChecks: 5,
}
generatedData = append(generatedData, tc)
}
return nil
})
for _, tc := range generatedData {
testModule(t, tc, true, true, true, true)
}
}

0 comments on commit 874ec8e

Please sign in to comment.