diff options
author | konsumlamm <44230978+konsumlamm@users.noreply.github.com> | 2021-01-04 11:04:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-04 11:04:30 +0100 |
commit | 435f829348e12642540277ebeebe88fa6f289f80 (patch) | |
tree | 4fdb06c9cf04256b4b9e6e4866fc09f2a3aae44b /tests/stdlib | |
parent | c80261bc00c2be59216f945e7915699f6adab690 (diff) | |
download | Nim-435f829348e12642540277ebeebe88fa6f289f80.tar.gz |
Improve sequtils documentation (#16559)
* Improve sequtils documentation Uncomment assertions in tests * Use present tense
Diffstat (limited to 'tests/stdlib')
-rw-r--r-- | tests/stdlib/tsequtils.nim | 6 |
1 files changed, 2 insertions, 4 deletions
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 |