Commit Graph

20 Commits

Author SHA1 Message Date
Araq
d8b0edc323 Merge branch 'mget' of https://github.com/def-/Nim into def--mget
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
2015-10-13 00:22:27 +02:00
Araq
2c33ebed7b improves new tests 2015-10-12 21:12:00 +02:00
Peter Mora
75097e2981 sequtils related changes 2015-10-05 22:42:22 +02:00
Adam Strzelecki
e80465dacf tests: Trim .nim files trailing whitespace
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
2015-09-04 23:04:32 +02:00
Fabian Keller
414d69ccea added hash function for ordinal types 2015-07-03 11:19:17 +02:00
Andreas Rumpf
31d472d83d Merge pull request #2660 from MrJohz/contains-tables
Add contains proc for tables to allow usage of `in`
2015-05-08 02:19:45 +02:00
Varriount
d3f69e14f7 Merge pull request #2596 from Nycto/devel
Fix floats in tuples in HashSets
2015-05-07 13:02:42 -04:00
Jonathan
8e4af5ace0 Add contains proc for tables to allow usage of in 2015-05-05 23:26:58 +01:00
Araq
7d3a6b42d9 fixes #2625 2015-05-03 01:08:48 +02:00
Nycto
4f88238761 Fix floats in tuples in HashSets
Previously, the added tests would fail to compile with
errors complaining that 'hash(float)' didn't exist
2015-04-24 08:25:58 -07:00
def
63f9385327 Rename mget to []
- 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
2015-03-31 00:32:39 +02:00
Hans Raaf
a41778725a Added Test for zip() with anonymous tuples. 2015-03-17 00:15:23 +01:00
Hans Raaf
93aa73284e Fix unknown symbol in tables mpairs iterator.
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.
2015-02-21 23:20:02 +01:00
Araq
1c88d26ebf added test case for #2107 2015-02-20 20:01:23 +01:00
Charles Blake
b65032e77e Add some unit tests for mgetOrPut and hasKeyOrPut. 2015-02-17 09:55:46 -05:00
Charles Blake
db257669c3 New probe seq swaps 1st two keys. Fix in compare. 2015-02-16 07:15:34 -05:00
Charles Blake
39b98fede3 New probe seq swaps 1st two keys. Fix in cmp. 2015-02-13 08:50:26 -05:00
Araq
10335fd726 fixed minor bugs; cleaned up tests 2015-02-12 14:56:56 +01:00
Simon Hafner
7a3106d659 moved tsets test to collections/ 2014-02-12 16:15:34 -06:00
Simon Hafner
5498415f3b indexBy, which indexes a collection into a hashtable 2014-02-06 16:11:55 -06:00