### ----------------------------------------------------
### -- JSON::Mask
### -- Licenses: Artistic-2.0
### -- Authors: 
### -- File: t/05-compile.rakutest
### ----------------------------------------------------
use JSON::Mask;
use Test;

plan 2;

my $mask = compile-mask('a,c(1)');

is-deeply mask($mask, %(a => 1, b => 2, c => (1 => 0))),
        %(a => 1, c => %(1 => 0));

is-deeply mask($mask, %()), %();

# vim: expandtab shiftwidth=4


