Simple tests for bytes
(t *testing.T)
| 410 | |
| 411 | // Simple tests for bytes |
| 412 | func TestBytesPrimitives(t *testing.T) { |
| 413 | o := old() |
| 414 | bytes := []byte{'n', 'o', 'w', ' ', 'i', 's', ' ', 't', 'h', 'e', ' ', 't', 'i', 'm', 'e'} |
| 415 | if o.EncodeRawBytes(bytes) != nil { |
| 416 | t.Error("EncodeRawBytes") |
| 417 | } |
| 418 | decb, e := o.DecodeRawBytes(false) |
| 419 | if e != nil { |
| 420 | t.Error("DecodeRawBytes") |
| 421 | } |
| 422 | equalbytes(bytes, decb, t) |
| 423 | } |
| 424 | |
| 425 | // Simple tests for strings |
| 426 | func TestStringPrimitives(t *testing.T) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…