Skip to content

Commit

Permalink
Fix random value generation for pq.Float64Array factory
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeparaujo committed Dec 5, 2024
1 parent d3af79d commit 5048ffe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gen/bobgen-helpers/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ func Types() drivers.Types {
Imports: importers.List{`"github.com/lib/pq"`},
RandomExpr: `arr := make(pq.Float64Array, f.IntBetween(1, 5))
for i := range arr {
arr[i] = f.Float64()
arr[i] = f.Float64(10, -1_000_000, 1_000_000)
}
return arr`,
CompareExpr: `slices.Equal(AAA, BBB)`,
Expand Down

0 comments on commit 5048ffe

Please sign in to comment.