summary refs log tree commit diff stats
path: root/tests/collections
Commit message (Collapse)AuthorAgeFilesLines
* add `isNamedTuple`; make $(1, 2) be (1, 2) instead of (Field0: 1, Field1: 2) ↵Timothee Cour2019-01-081-3/+3
| | | | | | | | | | | | | which leaked implementation detail (#10070) * add `isNamedTuple`; make $(1, 2) be (1, 2) instead of leaking implementation detail (Field0: 1, Field1: 2) fixes this: #8670 (comment) /cc @alehander42 @Vindaar @mratsim * Note: isNamedTuple is useful in other places, eg #10010 (comment) * move isNamedTuple to helpers.nim to avoid exposing new symbol to system.nim * remove workaround in tests/vm/tissues.nim failing test now that #10218 was makes it work
* testament: joinable is now an explicit concept of a test specAndreas Rumpf2018-12-111-1/+2
|
* lots of small changesArne Döring2018-12-111-2/+2
|
* megatest can be executedArne Döring2018-12-111-0/+0
|
* require errormsg to be specified before file.Arne Döring2018-12-112-6/+3
|
* make some tests faster (#9413)Miran2018-10-171-25/+6
| | | | | | | | | | | | * remove duplicated slow test * smaller `convex hull` * smaller sleep * faster `trtree` * smaller sleep in `tfuturestream`
* Merge tests into a larger file (part 1 of ∞) (#9318)Miran2018-10-1215-716/+704
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * merge actiontable tests * merge arithm tests * merge array tests * merge assign tests * merge bind tests * merge casestmt tests * merge closure tests * merge cnt seq tests * merge collections tests * merge concept issues tests * merge concept tests * fix failing tests * smaller outputs Use `doAssert` where possible. * fix wrong output * split `tcomputedgoto` * revert merging concepts * fix failing test
* Updated tests for CritBitTree $data-man2018-06-071-3/+3
|
* Modify hash for HashSet to use `xor` to mix hash of items.Lolo Iccl2018-05-091-4/+0
|
* Modify previous commit and add testsLolo Iccl2018-05-091-4/+52
|
* make tests greenAndreas Rumpf2018-05-051-2/+2
|
* Don't escape multibyte characters (#7570)Oscar Nihlgård2018-04-231-2/+8
|
* Fixed mutex usage in SharedList and SharedTable. Closes #6988 (#6990)Yuriy Glukhov2017-12-311-1/+2
|
* Improved collection-to-string behavior (#6825)Fabian Keller2017-12-143-3/+109
|
* Remove expr/stmt (#5857)Arne Döring2017-07-251-1/+1
|
* Implement 'take' for Table and TableRef (#5773)Ruslan Mustakov2017-05-041-0/+15
|
* Deques compilation error fix (#5591)Dmitriy Fomichev2017-03-241-0/+17
|
* Added clear() function for OrderedSet and HashSet. (#5545)GrundleTrundle2017-03-161-0/+42
|
* Add compute proc for SharedTable (#5385)Ruslan Mustakov2017-03-021-1/+25
|
* added hash for uints (#5435)Fabian Keller2017-02-261-0/+15
|
* reenabled clear test, made clear working (#5323)Arne Döring2017-02-021-22/+20
|
* Fixes #5035Felix Krause2016-11-181-1/+24
|
* Table fixes. fixes #4901Felix Krause2016-10-231-0/+33
| | | | | | | | * added `==` for OrderedTable, CountTable and the *Ref types * added missing documentation to all `==` procs * fixed clear() for OrderedTables, which did not work because `var` does not work well with `|` * added tests
* fixes a critical tables bug that caused 'enlarge' to crash after 'add'Andreas Rumpf2016-09-051-0/+13
|
* Disable failing tests for tables.clear()Kier Davis2016-07-091-20/+22
| | | | | The tests for tables.clear() in tests/collections/ttables.nim currently fail as a result of #4448, so I've wrapped them in a 'when false' to disable them until the bug is fixed.
* Add tests for tables.clear()Kier Davis2016-07-092-0/+46
| | | | This should reduce the chance of regressions.
* Merge branch 'mget' of https://github.com/def-/Nim into def--mgetAraq2015-10-132-3/+9
|\ | | | | | | | | | | | | | | | | | | Conflicts: lib/pure/collections/critbits.nim lib/pure/collections/tables.nim lib/pure/xmltree.nim lib/system/sets.nim tests/collections/ttables.nim tests/collections/ttablesref.nim
| * Rename mget to `[]`def2015-03-312-17/+23
| | | | | | | | | | | | | | | | | | - In sets, tables, strtabs, critbits, xmltree - This uses the new var parameter overloading - mget variants still exist, but are deprecated in favor of `[]` - Includes tests and fixed tests and usages of mget - The non-var `[]` now throws an exception instead of returning binary 0 or an empty string
* | improves new testsAraq2015-10-122-3/+12
| |
* | sequtils related changesPeter Mora2015-10-052-0/+35
| |
* | tests: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-042-3/+3
| | | | | | | | via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
* | added hash function for ordinal typesFabian Keller2015-07-031-0/+75
| |
* | Merge pull request #2660 from MrJohz/contains-tablesAndreas Rumpf2015-05-082-15/+19
|\ \ | | | | | | Add contains proc for tables to allow usage of `in`
| * | Add contains proc for tables to allow usage of `in`Jonathan2015-05-052-15/+19
| | |
* | | Merge pull request #2596 from Nycto/develVarriount2015-05-071-14/+34
|\ \ \ | |/ / |/| | Fix floats in tuples in HashSets
| * | Fix floats in tuples in HashSetsNycto2015-04-241-14/+34
| |/ | | | | | | | | Previously, the added tests would fail to compile with errors complaining that 'hash(float)' didn't exist
* / fixes #2625Araq2015-05-031-0/+19
|/
* Added Test for zip() with anonymous tuples.Hans Raaf2015-03-171-2/+7
|
* Fix unknown symbol in tables mpairs iterator.Hans Raaf2015-02-211-0/+16
| | | | Fixes an error with mpairs iterator which was introduced with 5fbcf93860. This is used by nimforum thats why I found it. I also added a testcase for the mpairs iterator.
* added test case for #2107Araq2015-02-201-0/+10
|
* Add some unit tests for mgetOrPut and hasKeyOrPut.Charles Blake2015-02-171-1/+9
|
* New probe seq swaps 1st two keys. Fix in compare.Charles Blake2015-02-161-1/+1
|
* New probe seq swaps 1st two keys. Fix in cmp.Charles Blake2015-02-131-1/+1
|
* fixed minor bugs; cleaned up testsAraq2015-02-126-21/+342
|
* moved tsets test to collections/Simon Hafner2014-02-121-0/+17
|
* indexBy, which indexes a collection into a hashtableSimon Hafner2014-02-061-0/+22