From 6d28f247656e62cc4abab0655ea8b4a9da5e046b Mon Sep 17 00:00:00 2001 From: Krista LaFentres Date: Wed, 15 Nov 2023 09:30:42 -0600 Subject: [PATCH] type float helper tests --- internal/helper/type_float_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/helper/type_float_test.go b/internal/helper/type_float_test.go index 9960a9a0..225bd9a2 100644 --- a/internal/helper/type_float_test.go +++ b/internal/helper/type_float_test.go @@ -13,11 +13,11 @@ func TestTypeFloat_FloatToPPM(t *testing.T) { expected int }{ {input: 100, expected: 1000000}, - {input: 99, expected: 990000}, + {input: 99.00, expected: 990000}, {input: 9.9999, expected: 99999}, {input: 9, expected: 90000}, {input: 0.1, expected: 1000}, - {input: 0.01, expected: 100}, + {input: 0.010, expected: 100}, {input: 0.001, expected: 10}, {input: 0.0001, expected: 1}, } @@ -34,11 +34,11 @@ func TestTypeFloat_FloatToPercentString(t *testing.T) { expected string }{ {input: 100, expected: "100"}, - {input: 99.00, expected: "99.00"}, + {input: 99.00, expected: "99"}, {input: 9.9999, expected: "9.9999"}, {input: 9, expected: "9"}, {input: 0.1, expected: "0.1"}, - {input: 0.01, expected: "0.01"}, + {input: 0.010, expected: "0.01"}, {input: 0.001, expected: "0.001"}, {input: 0.0001, expected: "0.0001"}, }