Skip to content

Commit

Permalink
type float helper tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lafentres committed Nov 15, 2023
1 parent 630ca88 commit 6d28f24
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/helper/type_float_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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},
}
Expand All @@ -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"},
}
Expand Down

0 comments on commit 6d28f24

Please sign in to comment.