got rid of 'accept' dir in the tests
This commit is contained in:
parent
d0772feb08
commit
a274f3bf5b
264 changed files with 5 additions and 7 deletions
20
tests/run/tvarres2.nim
Normal file
20
tests/run/tvarres2.nim
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
discard """
|
||||
output: "45 hallo"
|
||||
"""
|
||||
|
||||
type
|
||||
TKachel = tuple[i: int, s: string]
|
||||
TSpielwiese = object
|
||||
k: seq[TKachel]
|
||||
|
||||
var
|
||||
spielwiese: TSpielwiese
|
||||
newSeq(spielwiese.k, 64)
|
||||
|
||||
proc at*(s: var TSpielwiese, x, y: int): var TKachel =
|
||||
result = s.k[y * 8 + x]
|
||||
|
||||
spielwiese.at(3, 4) = (45, "hallo")
|
||||
|
||||
echo spielwiese.at(3,4)[0], " ", spielwiese.at(3,4)[1]
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue