### ----------------------------------------------------
### -- Text::Spintax
### -- Licenses: Artistic-2.0
### -- Authors: Dale Evans
### -- File: t/Spintax.rakutest
### ----------------------------------------------------
use Test;

use Text::Spintax;

plan 1;

{
    my $spintax = Text::Spintax.new;
    my $renderer = $spintax.parse('{a|b} {c|d {e|f}}');
    my %outputs;
    for 1 .. 100 -> $x {
       %outputs{$renderer.render} = 1;
    }
    my %expected = (
        'a c' => 1,
        'a d e' => 1,
        'a d f' => 1,
        'b c' => 1,
        'b d e' => 1,
        'b d f' => 1,
    );
    is-deeply %outputs, %expected, 'all options reachable';
}

# vim: expandtab shiftwidth=4


