new tester; all tests categorized
This commit is contained in:
parent
51ee524109
commit
20b5f31c03
481 changed files with 794 additions and 2506 deletions
|
|
@ -1,16 +0,0 @@
|
|||
discard """
|
||||
line: "13"
|
||||
errormsg: "for a 'var' type a variable needs to be passed"
|
||||
"""
|
||||
|
||||
proc divmod(a, b: int, res, remainder: var int) =
|
||||
res = a div b # integer division
|
||||
remainder = a mod b # integer modulo operation
|
||||
|
||||
let
|
||||
x = 9
|
||||
y = 3
|
||||
divmod(8, 5, x, y) # modifies x and y
|
||||
echo(x)
|
||||
echo(y)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue