### ----------------------------------------------------
### -- Edit::Files
### -- Licenses: Artistic-2.0
### -- Authors: Elizabeth Mattijsen
### -- File: t/01-basic.rakutest
### ----------------------------------------------------
use Test;
use Edit::Files;

plan 3;

ok MY::<&edit-files>, 'did edit-files get exported';

my sub fedit(@files, $tag) {
    is-deeply @files, [<foo bar>], 'did we get the right files';
    is $tag, "baz", 'did we get the right tag';
}

edit-files <foo bar>, :tag<baz>, :editor(&fedit);
edit-files (), :tag<baz>, :editor(&fedit);  # should not call fedit

# vim: expandtab shiftwidth=4


