Adds generic idetools api test case.

At the moment three lines of the test case fail in proc mode.
This commit is contained in:
Grzegorz Adam Hankiewicz 2013-06-07 21:24:45 +02:00
commit f11a3b2324
4 changed files with 70 additions and 1 deletions

View file

@ -0,0 +1,23 @@
import unicode, sequtils
proc test_enums() =
var o: Tfile
if o.open("files " & "test.txt", fmWrite):
o.write("test")
o.close()
proc test_iterators(filename = "tests.nim") =
let
input = readFile(filename)
letters = toSeq(runes(string(input)))
for letter in letters: echo int(letter)
const SOME_SEQUENCE = @[1, 2]
type
bad_string = distinct string
TPerson = object of TObject
name*: bad_string
age: int
proc adder(a, b: int): int =
result = a + b