diff options
author | Araq <rumpf_a@web.de> | 2019-04-06 17:32:33 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2019-04-06 17:32:53 +0200 |
commit | 6e6a9a721fc039c88851650e4ab989aeff04fc9f (patch) | |
tree | 1cbcab26559355e7b7ee4dee87454956661dc5da /tests/destructor | |
parent | fab75fbaf1a2dd94cedfc0b41173edf49b581c6e (diff) | |
download | Nim-6e6a9a721fc039c88851650e4ab989aeff04fc9f.tar.gz |
destructors: we are cooking now
Diffstat (limited to 'tests/destructor')
-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() |