Course of Raku / Advanced / Testing and documentation 🆕 / Testing 🆕 / Exercises / A first test
Solution: A first test
Here is a possible solution to the task.
Code
use Test;
ok 'Raku'.chars == 4, 'Raku has four letters';
done-testing;🦋 You can find the source code in the file a-first-test.raku.
Output
ok 1 - Raku has four letters
1..1Comments
okpasses because the condition'Raku'.chars == 4is true.done-testingemits the plan line1..1, stating that one test ran.
Course navigation
← A first test | Compare values →