Course of Raku / Advanced / Testing and documentation 🆕 / Testing 🆕 / Exercises / Compare values
Solution: Compare values
Here is a possible solution to the task.
Code
use Test;
is 'a'.uc, 'A', 'uppercase';
done-testing;🦋 You can find the source code in the file compare-values.raku.
Output
ok 1 - uppercase
1..1Comments
iscompares the actual value'a'.ucwith the expected'A'.They match, so the test passes; on failure,
iswould print both values.