From 57e8e3b014ee032b8710878e5a88f6056a047586 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Wed, 5 Feb 2025 23:05:50 +0100 Subject: [PATCH] Add some more data types to the golden tests --- hashstructure_test.go | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/hashstructure_test.go b/hashstructure_test.go index f0259e1..0bc6909 100644 --- a/hashstructure_test.go +++ b/hashstructure_test.go @@ -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,