Improved code style

This commit is contained in:
2025-01-30 22:23:38 +01:00
parent 162824ec1c
commit 313302b9c8
12 changed files with 17 additions and 22 deletions

View File

@ -48,7 +48,7 @@ func BenchmarkExamples(b *testing.B) {
b.Run(test.Name, func(b *testing.B) {
compiler := build.New(filepath.Join("..", "examples", test.Name))
for i := 0; i < b.N; i++ {
for range b.N {
_, err := compiler.Run()
assert.Nil(b, err)
}

View File

@ -82,7 +82,7 @@ func BenchmarkPrograms(b *testing.B) {
b.Run(test.Name, func(b *testing.B) {
compiler := build.New(filepath.Join("programs", test.Name+".q"))
for i := 0; i < b.N; i++ {
for range b.N {
_, err := compiler.Run()
assert.Nil(b, err)
}