new tester; all tests categorized
This commit is contained in:
parent
51ee524109
commit
20b5f31c03
481 changed files with 794 additions and 2506 deletions
|
|
@ -1,20 +0,0 @@
|
|||
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