From 435f829348e12642540277ebeebe88fa6f289f80 Mon Sep 17 00:00:00 2001 From: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Date: Mon, 4 Jan 2021 11:04:30 +0100 Subject: Improve sequtils documentation (#16559) * Improve sequtils documentation Uncomment assertions in tests * Use present tense --- tests/stdlib/tsequtils.nim | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tests/stdlib') diff --git a/tests/stdlib/tsequtils.nim b/tests/stdlib/tsequtils.nim index 94f6c3b08..385e6e651 100644 --- a/tests/stdlib/tsequtils.nim +++ b/tests/stdlib/tsequtils.nim @@ -410,13 +410,11 @@ block: # mapIt with direct openArray template foo2(x: openArray[int]): seq[int] = x.mapIt(it * 10) counter = 0 doAssert foo2(openArray[int]([identity(1), identity(2)])) == @[10, 20] - # TODO: this fails; not sure how to fix this case - # doAssert counter == 2 + doAssert counter == 2 counter = 0 doAssert openArray[int]([identity(1), identity(2)]).mapIt(it) == @[1, 2] - # ditto - # doAssert counter == 2 + doAssert counter == 2 block: # mapIt empty test, see https://github.com/nim-lang/Nim/pull/8584#pullrequestreview-144723468 # NOTE: `[].mapIt(it)` is illegal, just as `let a = @[]` is (lacks type -- cgit 1.4.1-2-gfad0