(t *testing.T)
| 10 | ) |
| 11 | |
| 12 | func TestBinaryNumber(t *testing.T) { |
| 13 | test.Bytes(t, binaryNumber([]byte("0b0"), 0), []byte("0")) |
| 14 | test.Bytes(t, binaryNumber([]byte("0b1"), 0), []byte("1")) |
| 15 | test.Bytes(t, binaryNumber([]byte("0b1001"), 0), []byte("9")) |
| 16 | test.Bytes(t, binaryNumber([]byte("0b100000000000000000000000000000000000000000000000000000000000000"), 0), []byte("4611686018427387904")) |
| 17 | test.Bytes(t, binaryNumber([]byte("0b1000000000000000000000000000000000000000000000000000000000000000"), 0), []byte("0b1000000000000000000000000000000000000000000000000000000000000000")) |
| 18 | } |
| 19 | |
| 20 | func TestOctalNumber(t *testing.T) { |
| 21 | test.Bytes(t, octalNumber([]byte("0o0"), 0), []byte("0")) |
nothing calls this directly
no test coverage detected
searching dependent graphs…