Skip to content

Commit

Permalink
Ensure test uses float value (#1617)
Browse files Browse the repository at this point in the history
  • Loading branch information
theunrepentantgeek authored Jul 4, 2021
1 parent 9aa558c commit 2578fbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/generated/pkg/genruntime/property_bag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func TestPropertyBag_CorrectlyRoundTripsBooleans(t *testing.T) {

func TestPropertyBag_CorrectlyRoundTripsFloats(t *testing.T) {
g := NewWithT(t)
var original float64 = 1 / 10 // Deliberately chose a value that can't be represented exactly
var original float64 = 1.0 / 10 // Deliberately chose a value that can't be represented exactly
var actual float64

bag := make(PropertyBag)
Expand Down

0 comments on commit 2578fbe

Please sign in to comment.