tables module uses runnableExamples (#16994)

* tables module use runnableExamples
* disable the tests
This commit is contained in:
flywind
2021-02-13 02:09:12 -06:00
committed by GitHub
parent fad8439b8d
commit eb8cc51bb8
4 changed files with 314 additions and 335 deletions

View File

@@ -7,7 +7,7 @@
# distribution, for details about the copyright.
#
# An ``include`` file which contains common code for
# An `include` file which contains common code for
# hash sets and tables.
const

View File

@@ -7,7 +7,7 @@
# distribution, for details about the copyright.
#
# An ``include`` file for the different table implementations.
# An `include` file for the different table implementations.
include hashcommon

File diff suppressed because it is too large Load Diff

View File

@@ -21,6 +21,7 @@ proc main =
# and 64 bit versions of nimsuggest
discard """
disabled:true
$nimsuggest --tester --maxresults:4 $file
>sug $1
sug;;skProc;;tables.hasKey;;proc (t: Table[hasKey.A, hasKey.B], key: A): bool;;*/lib/pure/collections/tables.nim;;374;;5;;"Returns true *";;100;;None
@@ -29,4 +30,5 @@ sug;;skProc;;tables.contains;;proc (t: Table[contains.A, contains.B], key: A): b
sug;;skProc;;tables.del;;proc (t: var Table[del.A, del.B], key: A);;*/lib/pure/collections/tables.nim;;*;;5;;"*";;100;;None
"""
# TODO enable the tests
# TODO: test/fix suggestion sorting - deprecated suggestions should rank lower