diff options
author | Andinus <andinus@nand.sh> | 2021-08-11 15:26:15 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2021-08-11 15:26:15 +0530 |
commit | 321825828ac918bad28d0597a8616c6dc9802c3c (patch) | |
tree | 0b8e9cb1012197750eb58e972736319b2a6abac2 /raku/hello-world/hello-world.rakutest | |
parent | 2979ef790ac5b8f58495e0dd08cafd6a3a2e30a5 (diff) | |
download | exercism-321825828ac918bad28d0597a8616c6dc9802c3c.tar.gz |
Add solved exercises
Diffstat (limited to 'raku/hello-world/hello-world.rakutest')
-rw-r--r-- | raku/hello-world/hello-world.rakutest | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/raku/hello-world/hello-world.rakutest b/raku/hello-world/hello-world.rakutest new file mode 100644 index 0000000..b0c9c35 --- /dev/null +++ b/raku/hello-world/hello-world.rakutest @@ -0,0 +1,12 @@ +#!/usr/bin/env raku +use Test; +use lib $?FILE.IO.dirname; #`[Look for the module inside the same directory as this test file.] +use HelloWorld; +plan 1; #`[This is how many tests we expect to run.] + +# Run the 'is' subroutine from the 'Test' module, with three arguments. +is( + hello, # Run the 'hello' subroutine, which is imported from your module. + 'Hello, World!', # The expected result to compare with 'hello'. + 'Say Hi!' # The test description. +); |