Doesn't actually fix those bugs, but they can no longer be reproduced. Test cases have been added.
This commit is contained in:
parent
c9616897f0
commit
3daef85d6e
1 changed files with 16 additions and 0 deletions
|
|
@ -1,4 +1,20 @@
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
|
|
||||||
|
proc doThings(spuds: var int): int =
|
||||||
|
spuds = 24
|
||||||
|
return 99
|
||||||
|
test "#964":
|
||||||
|
var spuds = 0
|
||||||
|
check doThings(spuds) == 99
|
||||||
|
check spuds == 24
|
||||||
|
|
||||||
|
|
||||||
|
from strutils import toUpper
|
||||||
|
test "#1384":
|
||||||
|
check(@["hello", "world"].map(toUpper) == @["HELLO", "WORLD"])
|
||||||
|
|
||||||
|
|
||||||
import options
|
import options
|
||||||
test "unittest typedescs":
|
test "unittest typedescs":
|
||||||
check(none(int) == none(int))
|
check(none(int) == none(int))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue