From 9d97e3b6baa3ab1dc523db2a21c1b638da6e3bd4 Mon Sep 17 00:00:00 2001 From: Klaus Post Date: Mon, 12 Sep 2022 17:01:17 +0200 Subject: [PATCH] Revert binary order when done testing... --- bitset_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bitset_test.go b/bitset_test.go index 2a56d27..8d86be1 100644 --- a/bitset_test.go +++ b/bitset_test.go @@ -11,6 +11,7 @@ import ( "compress/gzip" "encoding" "encoding/base64" + "encoding/binary" "encoding/json" "errors" "fmt" @@ -1227,6 +1228,10 @@ func TestMarshalUnmarshalBinary(t *testing.T) { func TestMarshalUnmarshalBinaryByLittleEndian(t *testing.T) { LittleEndian() + defer func() { + // Revert when done. + binaryOrder = binary.BigEndian + }() a := New(1010).Set(10).Set(1001) b := new(BitSet)