fixes #2473; cleanup of some tests
This commit is contained in:
parent
1a63e630ae
commit
5a003532d0
6 changed files with 28 additions and 54 deletions
|
|
@ -1,8 +1,10 @@
|
|||
discard """
|
||||
file: "tmemfiles2.nim"
|
||||
disabled: true
|
||||
output: '''Full read size: 20
|
||||
Half read size: 10 Data: Hello'''
|
||||
"""
|
||||
# doesn't work on windows. fmReadWrite doesn't create a file.
|
||||
import memfiles, os
|
||||
var
|
||||
mm, mm_full, mm_half: MemFile
|
||||
|
|
|
|||
16
tests/vm/tsimpleglobals.nim
Normal file
16
tests/vm/tsimpleglobals.nim
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
discard """
|
||||
msg: "abc xyz bb"
|
||||
"""
|
||||
|
||||
# bug #2473
|
||||
type
|
||||
Test = tuple[a,b: string]
|
||||
|
||||
static:
|
||||
var s:seq[Test] = @[(a:"a", b:"b")]
|
||||
s[0] = (a:"aa", b:"bb")
|
||||
|
||||
var x: Test
|
||||
x.a = "abc"
|
||||
x.b = "xyz"
|
||||
echo x.a, " ", x.b, " ", s[0].b
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
discard """
|
||||
errormsg: "cannot evaluate at compile time: x"
|
||||
line: 9
|
||||
line: 7
|
||||
"""
|
||||
|
||||
var x: array[100, char]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue