diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/destructor/tgcdestructors.nim | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/destructor/tgcdestructors.nim b/tests/destructor/tgcdestructors.nim index 4b7f4ccb4..fa778f49d 100644 --- a/tests/destructor/tgcdestructors.nim +++ b/tests/destructor/tgcdestructors.nim @@ -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() |