megatest can be executed

This commit is contained in:
Arne Döring 2018-12-03 19:12:59 +01:00 • committed by Araq
commit 2a4c09ff88
22 changed files with 150 additions and 130 deletions

View file

@ -1,10 +1,12 @@
discard """
output: '''(name: "hello")
(-1, 0)'''
output: '''
(name: "hello")
(-1, 0)
(FirstName: "James", LastName: "Franco")
'''
"""
# bug #2774, bug #3195
type Foo = object
name: string
@ -14,7 +16,6 @@ const fooArray = [
echo fooArray[0]
type
Position = object
x, y: int
@ -34,3 +35,16 @@ const
]
echo offset[1]
# bug #1547
import tables
type Person* = object
FirstName*: string
LastName*: string
let people = {
"001": Person(FirstName: "James", LastName: "Franco")
}.toTable()
echo people["001"]

View file

@ -70,7 +70,8 @@ block:
# Tests for VM ops
block:
static:
assert "vm" in getProjectPath()
# for joint test, the project path is different
assert "vm" in getProjectPath() or "Nim" in getProjectPath()
let b = getEnv("UNSETENVVAR")
assert b == ""