ringabout
c0861142f8
fixes strictdefs warnings for stdlibs [part two] ( #24514 )
...
After some cleanups for stdlibs, then we should enable warningaserror
for all tests
2024-12-06 05:40:48 +01:00
ringabout
2df633180a
enable experimental:strictDefs ( #24225 )
2024-11-23 22:01:39 +01:00
ringabout
3d2f0e2c7c
make more standard libraries work with nimPreviewSlimSystem ( #20343 )
...
* make more standard libraries work with `nimPreviewSlimSystem`
* typo
* part two
* Delete specutils.nim
* fixes more tests
* more fixes
* fixes tests
* fixes three more tests
* add formatfloat import
* fix
* last
2022-09-27 20:06:23 +02:00
silent-observer
93211a2bdd
Add sink and lent annotations to the critbits module ( #20021 )
...
* Add sink and lent to critbits
* Remove lent for pairs
I guess lent doesn't work well inside tuples
* Remove lent from template in critbits
Apparently this also doesn't work, because some checks failed
2022-07-14 12:03:16 +02:00
Danil Yarantsev
56461c280f
Change stdlib imports to use std prefix in most examples ( #17202 )
2021-02-28 13:17:19 -08:00
ee7
0b01eddace
critbits: fix error from strictFuncs ( #16877 )
...
Previously, compiling a file containing just `import critbits` with
`nim c --experimental:strictFuncs` would produce the following error:
critbits.nim(529, 6) Error: 'toCritBitTree' can have side effects
This was introduced by 2aed418698 (#16564 ).
Fixes : #16873
2021-02-01 13:14:23 +01:00
konsumlamm
bf184bcdd9
Remove longestMatch in _WithPrefix iterators ( #16689 )
2021-01-12 08:35:27 +01:00
konsumlamm
763fef59fa
Improve documentation for critbits ( #16568 )
2021-01-03 22:25:05 -08:00
hlaaftana
2aed418698
Fix #16554 ( #16564 )
2021-01-03 08:02:12 +01:00
flywind
cbc793b30b
move tests to testament ( #16101 )
...
* move tests to testament
* minor
* fix random
* disable test random
2020-11-24 19:06:41 +01:00
Juan Carlos
5e160bff1b
Add critbits.toCritBitTree ( #15444 )
...
* Add critbits.toCritBitTree
* https://github.com/nim-lang/Nim/pull/15444#discussion_r498035342
2020-10-01 15:11:10 +02:00
flywind
c57023f324
string is not nil anymore ( #15352 )
2020-09-18 10:02:31 +02:00
hlaaftana
fbc97e712a
move since from inclrtl to std/private/since ( #14188 )
...
* move since from inclrtl to std/private/since
* move since import in system below for HCR
2020-05-02 23:51:59 +02:00
Miran
9c33bcac5c
change 'iff' to 'if' to stop "corrections" once and for all ( #14182 )
2020-05-01 15:54:03 +02:00
Phil Krylov
d5d3594457
Add critbits.commonPrefixLen ( #14072 )
...
* Add critbits.commonPrefixLen
* add inline and since annotations, as well as a changelog entry
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2020-04-24 09:31:30 +02:00
jiro
f1ee817627
Add runnableExamples to critbits module ( #13994 )
...
* doc: critbit: add runnableExamples
* doc: critbit: change to upper
2020-04-18 20:06:20 +02:00
Juan Carlos
42d2c3088e
Add Documentation ( #13811 )
...
* Add more Docs and runnableExamples
2020-03-31 15:47:57 +02:00
Araq
dea9e38d26
removed the deprecatedGet pragma
2019-09-21 06:43:37 +02:00
Kaushal Modi
44d80dd863
[bugfix] critbits styleCheck fix: consistent var naming ( #11752 )
2019-07-16 21:24:09 +02:00
Miran
2255d8795b
[other] prettify collections ( #11695 )
2019-07-09 22:45:23 +02:00
Araq
4a9e6361ce
fixes #11344
2019-05-28 16:05:33 +02:00
Andreas Rumpf
49e686ab4e
fixes #1286 ; object case transitions are now sound
2019-05-27 21:29:02 +02:00
Miran
214f48eae9
Remove long deprecated stuff ( #10332 )
2019-01-18 07:18:32 +01:00
Araq
647066e378
make the stdlib work with the changed docgen
2019-01-11 22:17:43 +01:00
Araq
3f6168b337
removes deprecated T/P types
2018-11-16 13:27:56 +01:00
data-man
3e799d7876
Removed redundant conditions in CritBitTree.inc, speedup it.
2018-06-08 19:29:19 +03:00
Dmitry Atamanov
fbd91a474a
Add the val parameter for CritBitTree[T].incl ( #7988 )
...
* Add the val parameter for CritBitTree[T].incl
* Updated changelog
2018-06-08 12:01:40 -04:00
data-man
12f929e582
Fixed bug in CritBitTree.inc. Fixes #7990 .
2018-06-07 19:29:40 +03:00
data-man
aa7348b356
Quote a keys for CritBitTree $ impl. Fixes #7987
2018-06-07 18:39:46 +03:00
Dmitry Atamanov
06bdf8392b
Fixes CritBitTree.inc's bug ( #7838 )
...
* Fixes CritBitTree.inc's bug
* Update changelog
2018-05-18 21:13:29 +02:00
Andreas Rumpf
c8b2e65dbb
critbits: don't rely on terminating zero
2018-04-29 07:42:47 +02:00
Andreas Rumpf
b899713832
make more tests green
2018-04-29 01:48:21 +02:00
Fabian Keller
6df6ec27ec
Improved collection-to-string behavior ( #6825 )
2017-12-14 14:02:13 +01:00
Andreas Rumpf
6a3288a60e
more replacements for the deprecated '<'
2017-10-29 08:55:30 +01:00
superfunc
d1f6ddfd64
Add counterpart to containsOrIncl for excl ( #6360 )
2017-09-15 10:49:32 +02:00
Arne Döring
000b8afd26
Remove expr/stmt ( #5857 )
2017-07-25 09:28:23 +02:00
Mark Summerfield
3eff1b7765
Minor doc fix as per issue #5523 ( #5533 )
2017-03-14 15:06:06 +01:00
Araq
e9313dd362
added prefix matching to critbits.nim
2015-11-10 15:31:21 +01:00
Araq
8be9e46403
udpated the compiler and tester to use getOrDefault
2015-10-13 14:10:33 +02:00
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
732bdd54a0
added critbits.inc proc
2015-10-06 15:50:59 +02:00
Adam Strzelecki
43bddf62dd
lib: Trim .nim files trailing whitespace
...
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
2015-09-04 23:03:56 +02:00
Oleh Prypin
22db40e5e4
Turn some test outputs into actual tests
2015-04-21 15:59:32 +03:00
Oleh Prypin
32109a7867
Don't run non-test code when defined(testing)
2015-04-21 14:37:29 +03: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
Federico Ceratto
657dca5c3b
Fix typos
2015-02-15 16:20:32 +00:00
Araq
dbe71c715e
documented new C++ support
2015-01-28 12:59:04 +01:00
Araq
11b6958755
big rename
2014-08-27 23:42:51 +02:00
Araq
725cf0e22d
'[]' for crit bit trees doesn't need the 'var' parameter
2014-07-22 20:23:19 +02:00
Araq
4966212141
more fixes for new integer promotion rules; fixes #152 ; fixes #157 ; fixes #156 ; fixes #155
2012-07-09 21:11:11 +02:00