The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
use strict;
use warnings;
use utf8;
use Test::More;
use t::Util;

use Daiku;

my $FFF = '';
my $PPP = '';

task 'all' => 'foo' => sub {
    $PPP .= 'a';
};
task 'all' => 'bar' => sub {
    $PPP .= 'b';
};
task 'foo' => sub { $FFF .= "foo " };
task 'bar' => sub { $FFF .= "bar " };

is( join( ',', @{ engine()->find_task('all')->deps } ), 'foo,bar' );

build 'all';

is $FFF, 'foo bar ';
is $PPP, 'ab';

done_testing;