Skip to content

Commit 57e8e3b

Browse files
committed
Add some more data types to the golden tests
1 parent 6495cb5 commit 57e8e3b

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

hashstructure_test.go

+36
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,42 @@ func TestHash_golden(t *testing.T) {
711711
In: 42,
712712
Expect: 11375694726533372055,
713713
},
714+
{
715+
In: uint8(42),
716+
Expect: 12638153115695167477,
717+
},
718+
{
719+
In: int16(42),
720+
Expect: 590708257076254031,
721+
},
722+
{
723+
In: int32(42),
724+
Expect: 843871326190827175,
725+
},
726+
{
727+
In: int64(42),
728+
Expect: 11375694726533372055,
729+
},
730+
{
731+
In: uint16(42),
732+
Expect: 590708257076254031,
733+
},
734+
{
735+
In: uint32(42),
736+
Expect: 843871326190827175,
737+
},
738+
{
739+
In: uint64(42),
740+
Expect: 11375694726533372055,
741+
},
742+
{
743+
In: float32(42),
744+
Expect: 5558953217260120943,
745+
},
746+
{
747+
In: float64(42),
748+
Expect: 12162027084228238918,
749+
},
714750
{
715751
In: true,
716752
Expect: 12638153115695167454,

0 commit comments

Comments
 (0)