Skip to content

Commit

Permalink
Revert binary order when done testing...
Browse files Browse the repository at this point in the history
  • Loading branch information
klauspost committed Sep 12, 2022
1 parent 2a8cb8e commit 9d97e3b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bitset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"compress/gzip"
"encoding"
"encoding/base64"
"encoding/binary"
"encoding/json"
"errors"
"fmt"
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 9d97e3b

Please sign in to comment.