From 4debf24af462ef9d20a01789e72f0252467e1389 Mon Sep 17 00:00:00 2001 From: Bevan Arps Date: Mon, 5 Jul 2021 08:29:17 +1200 Subject: [PATCH] Ensure test uses float value --- hack/generated/pkg/genruntime/property_bag_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/generated/pkg/genruntime/property_bag_test.go b/hack/generated/pkg/genruntime/property_bag_test.go index e26b8231e8d..f768a30f248 100644 --- a/hack/generated/pkg/genruntime/property_bag_test.go +++ b/hack/generated/pkg/genruntime/property_bag_test.go @@ -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)