destructors: we are cooking now
This commit is contained in:
parent
fab75fbaf1
commit
6e6a9a721f
9 changed files with 73 additions and 43 deletions
|
|
@ -3,7 +3,7 @@ discard """
|
|||
output: '''hi
|
||||
ho
|
||||
ha
|
||||
7 1'''
|
||||
7 7'''
|
||||
"""
|
||||
|
||||
import allocators
|
||||
|
|
@ -75,7 +75,7 @@ iterator interpolatedFragments*(s: string): tuple[kind: InterpolatedKind,
|
|||
break
|
||||
i = j
|
||||
|
||||
when true:
|
||||
proc other =
|
||||
let input = "$test{} $this is ${an{ example}} "
|
||||
let expected = @[(ikVar, "test"), (ikStr, "{} "), (ikVar, "this"),
|
||||
(ikStr, " is "), (ikExpr, "an{ example}"), (ikStr, " ")]
|
||||
|
|
@ -84,6 +84,7 @@ when true:
|
|||
doAssert s == expected[i]
|
||||
inc i
|
||||
|
||||
other()
|
||||
|
||||
#echo s
|
||||
let (a, d) = allocCounters()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue