Raku
Status
Beta
Versions
Test Frameworks
Example
use v6;
unit module Solution;
sub add($a, $b) is export {
$a + $b;
}
use v6;
unit module Solution;
sub add($a, $b) is export {
$a + $b;
}
use v6;
use Test;
# The name of the solution module is inferred from the code.
use Solution;
subtest "test add", {
is(add(1, 1), 2);
}
# or
is(add(2, 2), 4);
done-testing;
use v6;
use Test;
# The name of the solution module is inferred from the code.
use Solution;
subtest "test add", {
is(add(1, 1), 2);
}
# or
is(add(2, 2), 4);
done-testing;
Preloaded code can be provided and it will be a separate module.
Timeout
12 seconds
Packages
None
Services
None
Language ID
raku