From 52b0088dd37daac9e6f26c4da42248cd487ed972 Mon Sep 17 00:00:00 2001 From: Chase Fleming <1666730+chasefleming@users.noreply.github.com> Date: Fri, 5 Apr 2024 14:51:59 -0700 Subject: [PATCH] Add float test cases for Rem --- styles/utils_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/styles/utils_test.go b/styles/utils_test.go index 130f015..1298219 100644 --- a/styles/utils_test.go +++ b/styles/utils_test.go @@ -83,6 +83,8 @@ func TestRem(t *testing.T) { assert.Equal(t, "100.00rem", Rem(100)) assert.Equal(t, "0.00rem", Rem(0)) assert.Equal(t, "50.00rem", Rem(50)) + assert.Equal(t, "50.00rem", Rem(50.0)) + assert.Equal(t, "50.00rem", Rem(50.00)) assert.Equal(t, "25.00rem", Rem(25)) }