summary refs log tree commit diff stats
path: root/raku/hello-world/hello-world.rakutest
blob: b0c9c3528916a7f0460fd212211c712502261c4a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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.
);