(t *testing.T)
| 18 | } |
| 19 | |
| 20 | func TestOctalNumber(t *testing.T) { |
| 21 | test.Bytes(t, octalNumber([]byte("0o0"), 0), []byte("0")) |
| 22 | test.Bytes(t, octalNumber([]byte("0o1"), 0), []byte("1")) |
| 23 | test.Bytes(t, octalNumber([]byte("0o775"), 0), []byte("509")) |
| 24 | test.Bytes(t, octalNumber([]byte("0o100000000000000000000"), 0), []byte("1152921504606846976")) |
| 25 | test.Bytes(t, octalNumber([]byte("0o1000000000000000000000"), 0), []byte("0o1000000000000000000000")) |
| 26 | } |
| 27 | |
| 28 | func TestHexadecimalNumber(t *testing.T) { |
| 29 | test.Bytes(t, hexadecimalNumber([]byte("0x0"), 0), []byte("0")) |
nothing calls this directly
no test coverage detected
searching dependent graphs…