summary refs log tree commit diff stats
path: root/raku/hello-world/hello-world.rakutest
diff options
context:
space:
mode:
Diffstat (limited to 'raku/hello-world/hello-world.rakutest')
-rw-r--r--raku/hello-world/hello-world.rakutest12
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.
+);