Adds smaller code samples from Chapters 1-3 to the tester.
This commit is contained in:
parent
8081a9b3d0
commit
9e86237855
11 changed files with 642 additions and 1 deletions
7
tests/niminaction/Chapter2/explicit_discard.nim
Normal file
7
tests/niminaction/Chapter2/explicit_discard.nim
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
discard """
|
||||
line: 7
|
||||
errormsg: "has to be discarded"
|
||||
"""
|
||||
|
||||
proc myProc(name: string): string = "Hello " & name
|
||||
myProc("Dominik")
|
||||
Loading…
Add table
Add a link
Reference in a new issue