Sha256: f81dec9c244f0e35acf837e6bde24d25f17c0665ab9fc5a1491435f55451b7ef
Contents?: true
Size: 792 Bytes
Versions: 83
Compression:
Stored size: 792 Bytes
Contents
#!/usr/bin/env perl6 use Test; use lib $?FILE.IO.dirname; use Trinary; my @cases = ( { input => 1, expected => 1, }, { input => 2, expected => 2, }, { input => 10, expected => 3, }, { input => 11, expected => 4, }, { input => 100, expected => 9, }, { input => 10, expected => 3, }, { input => 112, expected => 14, }, { input => 222, expected => 26, }, { input => 1122000120, expected => 32091, }, { input => "carrot", expected => 0, } ); plan @cases.elems; is to-decimal( .<input> ), .<expected>, .<input> for @cases;
Version data entries
83 entries across 83 versions & 1 rubygems