hex_test.go 309 B

1234567891011121314
  1. package stdlib_test
  2. import "testing"
  3. var hexBytes1 = []byte{
  4. 0x06, 0xAC, 0x76, 0x1B, 0x1D, 0x6A, 0xFA, 0x9D, 0xB1, 0xA0,
  5. }
  6. const hex1 = "06ac761b1d6afa9db1a0"
  7. func TestHex(t *testing.T) {
  8. module(t, `hex`).call("encode", hexBytes1).expect(hex1)
  9. module(t, `hex`).call("decode", hex1).expect(hexBytes1)
  10. }