Skip to content

Commit

Permalink
Add some more data types to the golden tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Feb 5, 2025
1 parent 6495cb5 commit 57e8e3b
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions hashstructure_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,42 @@ func TestHash_golden(t *testing.T) {
In: 42,
Expect: 11375694726533372055,
},
{
In: uint8(42),
Expect: 12638153115695167477,
},
{
In: int16(42),
Expect: 590708257076254031,
},
{
In: int32(42),
Expect: 843871326190827175,
},
{
In: int64(42),
Expect: 11375694726533372055,
},
{
In: uint16(42),
Expect: 590708257076254031,
},
{
In: uint32(42),
Expect: 843871326190827175,
},
{
In: uint64(42),
Expect: 11375694726533372055,
},
{
In: float32(42),
Expect: 5558953217260120943,
},
{
In: float64(42),
Expect: 12162027084228238918,
},
{
In: true,
Expect: 12638153115695167454,
Expand Down

0 comments on commit 57e8e3b

Please sign in to comment.