We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cbe91f commit 3903fc2Copy full SHA for 3903fc2
internal/build/cmd/generate/commands/gentests/model.go
@@ -667,7 +667,7 @@ default:
667
var specialCase string
668
if strings.HasSuffix(key, "from") || strings.HasSuffix(key, "to") {
669
specialCase = `else if floatValue, err := actual.(encjson.Number).Float64(); err == nil {
670
- actual = fmt.Sprintf("%d", int(floatValue))
+ actual = strconv.FormatFloat(floatValue, 'f', -1, 64)
671
} `
672
}
673
0 commit comments