Skip to content

Commit

Permalink
Test byteOrder
Browse files Browse the repository at this point in the history
  • Loading branch information
shaxbee committed Apr 20, 2016
1 parent 470d211 commit 66a4bf9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions wkb/primitive_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,9 @@ func TestHeader(t *testing.T) {
assert.Exactly(t, binary.LittleEndian, bo)
}
}

func TestByteOrder(t *testing.T) {
assert.Exactly(t, binary.BigEndian, byteOrder(0x00))
assert.Exactly(t, binary.LittleEndian, byteOrder(0x01))
assert.Nil(t, byteOrder(0x42))
}

0 comments on commit 66a4bf9

Please sign in to comment.