Merge branch 'devel' of https://github.com/Araq/Nim into add-nre

* 'devel' of https://github.com/Araq/Nim:
  Fix #964, fix #1384
  Don't inspect typedescs
This commit is contained in:
Flaviu Tamas
2015-05-26 19:32:50 -04:00
168 changed files with 6305 additions and 6961 deletions

View File

@@ -0,0 +1,21 @@
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
test "unittest typedescs":
check(none(int) == none(int))
check(none(int) != some(1))