### ----------------------------------------------------
### -- P5hex
### -- Licenses: Artistic-2.0
### -- Authors: Elizabeth Mattijsen
### -- File: t/03-oct.rakutest
### ----------------------------------------------------
use v6.*;
use Test;
use P5hex;

plan 12;

for <11 0o11 0011 11.576> {
    is oct($_), 9, "did $_ explicitely get handled ok";
    is .&oct,   9, "did $_ implicitely get handled ok";
}

for <0x11> {
    is oct($_), 17, 'did 0x explicitely get handled ok';
    is .&oct,   17, 'did 0x implicitely get handled ok';
}

for <0b11> {
    is oct($_), 3, 'did 0b explicitely  get handled ok';
    is .&oct,   3, 'did 0b implicitely  get handled ok';
}

# vim: expandtab shiftwidth=4


