Skip to content

Commit 5487976

Browse files
authored
Merge pull request #321 from felipeparaujo/main
Fix random value generation for pq.Float64Array factory
2 parents d3af79d + 3c55a3c commit 5487976

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4545
### Changed
4646

4747
- Updated error constant generation to employ specific error types for making error matching easier. (thanks @mbezhanov)
48+
- Fix random value generation for pq.Float64Array factory (thanks @felipeparaujo)
4849

4950
## [v0.29.0] - 2024-11-20
5051

gen/bobgen-helpers/helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ func Types() drivers.Types {
338338
Imports: importers.List{`"github.com/lib/pq"`},
339339
RandomExpr: `arr := make(pq.Float64Array, f.IntBetween(1, 5))
340340
for i := range arr {
341-
arr[i] = f.Float64()
341+
arr[i] = f.Float64(10, -1_000_000, 1_000_000)
342342
}
343343
return arr`,
344344
CompareExpr: `slices.Equal(AAA, BBB)`,

0 commit comments

Comments
 (0)