-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hello-world: Update tests and example to 1.1.0
- Loading branch information
Showing
2 changed files
with
6 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
proc helloworld*(name="World"): string = | ||
return "Hello, " & name & "!" | ||
proc hello*: string = | ||
"Hello, World!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,8 @@ | ||
import unittest | ||
import hello_world | ||
|
||
import helloworld | ||
# version 1.1.0 | ||
|
||
suite "Hello World": | ||
|
||
test "no name": | ||
check helloworld() == "Hello, World!" | ||
|
||
test "sample name": | ||
check helloworld("Alice") == "Hello, Alice!" | ||
|
||
test "other sample name": | ||
check helloworld("Bob") == "Hello, Bob!" | ||
test "say hi": | ||
check hello() == "Hello, World!" |