summary refs log tree commit diff stats
path: root/tests/stdlib
Commit message (Collapse)AuthorAgeFilesLines
* Add test caseOscar Nihlgård2018-01-091-0/+13
|
* memfiles: enable test; refs #6361Araq2018-01-031-2/+0
|
* cmp(x, y: string) now uses memcmp rather than strcmp (#6869) (#6968)Mathias Stearn2017-12-241-0/+20
|
* Merge pull request #6725 from FedericoCeratto/unittest-5114Dominik Picheta2017-12-221-0/+38
|\ | | | | Add unittest suite/test name filters
| * Add unittest suite/test name filtersFederico Ceratto2017-11-281-0/+38
| | | | | | | | Support simple globbing
* | fixes #6353 (#6951)skilchen2017-12-211-0/+44
| |
* | Better times module (#6552)GULPF2017-12-181-156/+210
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * First work on better timezones * Update tests to new api. Removed tests for checking that `isDst` was included when formatting, since `isDst` no longer affects utc offset (the entire utc offset is stored directly in `utcOffset` instead). * Deprecate getLocaltime & getGmTime * Add `now()` as a shorthand for GetTIme().inZone(Local) * Add FedericoCeratto's timezone tests (#6548) * Run more tests in all timezones * Make month enum start at 1 instead of 0 * Deprecate getDayOfWeekJulian * Fix issues with gc safety * Rename TimeInfo => DateTime * Fixes #6465 * Improve isLeapYear * FIx handling negative adjTime * Cleanup: - deprecated toSeconds and fromSeconds, added fromUnix and toUnix instead (that returns int64 instead of float) - added missing doc comments - removed some unnecessary JS specific implementations * Fix misstake in JS `-` for Time * Update usage of TimeEffect * Removed unecessary use of `difftime` * JS fix for local tz * Fix subtraction of months * Fix `days` field in `toTimeInterval` * Style and docs * Fix getDayOfYear for real this time... * Fix handling of adding/subtracting time across dst transitions * Fix some bad usage of the times module in the stdlib * Revert to use proper time resoultion for seeding in random.nim * Move deprecated procs to bottom of file * Always use `epochTime` in `randomize` * Remove TimeInterval normalization * Fixes #6905 * Fix getDayOfWeek for year < 1 * Export toEpochDay/fromEpochDay and change year/month/monthday order * Add asserts for checking that the monthday is valid * Fix some remaining ambiguous references to `Time` * Fix ambiguous reference to Time
* | Merge branch 'parsesql' of https://github.com/treeform/Nim into ↵Araq2017-12-151-0/+191
|\ \ | | | | | | | | | treeform-parsesql
| * | fixtreeform2017-12-141-296/+111
| | |
| * | fixtreeform2017-12-141-435/+373
| | |
| * | fixtreeform2017-12-141-0/+438
| | |
* | | Merge branch 'devel' of github.com:nim-lang/Nim into develAndreas Rumpf2017-12-152-2/+2
|\| |
| * | Improved collection-to-string behavior (#6825)Fabian Keller2017-12-142-2/+2
| | |
* | | added SQL parser testAndreas Rumpf2017-12-142-0/+310
|/ /
* | Support all int, uint and float variants in json.to macro.Dominik Picheta2017-11-301-1/+27
| |
* | Fix infinite recursion when using json.to on ref with cycle.Dominik Picheta2017-11-302-3/+22
| |
* | Implement support for JsonNode in json.to.Dominik Picheta2017-11-301-1/+18
| |
* | Implement Table/OrderedTable support for json.to macro.Dominik Picheta2017-11-301-2/+25
| |
* | Implement support for Option[T] in json.to macro. Fixes #5848.Dominik Picheta2017-11-301-2/+23
| |
* | Fixes #6604. Rejects unnamed tuples with error.Dominik Picheta2017-11-302-1/+39
| |
* | Fixes #6095.Dominik Picheta2017-11-301-1/+17
| |
* | Fixes #5856. Code based on @loloiccl's PR (#5879).Dominik Picheta2017-11-301-1/+14
| |
* | Fixes #6223.Dominik Picheta2017-11-281-0/+4
|/
* added a warning that the .deprecate statement is unreliable for routinesAndreas Rumpf2017-11-211-1/+1
|
* Appveyor thttpclient (#6744)Fredrik Høisæther Rasch2017-11-151-0/+1
| | | | | | * App option value for disabling tests for AppVeyor * Disable thttpclient on AppVeyor
* attempt to make travis green againAndreas Rumpf2017-11-052-0/+2
|
* make tests green againAraq2017-11-012-4/+4
|
* Update `removeSuffix` implementations to match `removePrefix` (#6636)Bo Lingen2017-10-301-4/+26
|
* remove old implementation of the roof operator; make tests green again; ↵Andreas Rumpf2017-10-292-4/+4
| | | | close #6292
* add `strutils.removePrefix` proc (#6473)Bo Lingen2017-10-281-0/+62
|
* isAlphaNumberic and isDigit improvement + tests (#6579)Viktor Marosvary2017-10-241-0/+19
| | | if we encounter a character that does not satisfy the proc, we return immediately, without continuing to loop over the rest of the chars in the string.
* Merge pull request #6495 from GULPF/Fix-countLeapYearsDominik Picheta2017-10-161-0/+6
|\ | | | | Fix countLeapYears
| * Fix countLeapYearsOscar Nihlgård2017-10-101-0/+6
| |
* | [JSON] getBVal -> getBool; getFNum -> getFloatDaniil Yarancev2017-10-141-2/+2
|/
* Add dst formatting tests (#6468)GULPF2017-10-101-11/+19
| | | | | | * Rename ttime.nim => ttimes.nim * Add formating tests for DST, closes #3199 * Make appveyor green * Remove broken test
* the parser finally parses 'echo {1,2}' as it shouldAndreas Rumpf2017-09-303-5/+5
|
* Improved unittest check macro, fixes #5784 (#6446)GULPF2017-09-301-6/+21
|
* Reorder json `add` and `%`, fixes #6385 (#6388)Mamy Ratsimbazafy2017-09-162-0/+15
| | | | | | * Reorder json `add` and `%`, fixes https://github.com/nim-lang/Nim/issues/6385 * rename json test files
* Changed JSON stringification to preserve UTF (#6330)Yuriy Glukhov2017-09-151-1/+1
|
* Fix wrong result of countLines() (#6371)Simon Krauter2017-09-151-0/+12
|
* attempt to make travis green againAraq2017-09-051-14/+18
|
* Remove expr/stmt (#5857)Arne Döring2017-07-253-20/+21
|
* fixes #6049 add mixin release, acquire to withLock (#6113)andri lim2017-07-162-0/+21
|
* fixes #6046 parsecfg failed to parse negative int (#6097)andri lim2017-07-141-0/+23
|
* fixes #5966Fabian Keller2017-06-201-1/+22
|
* fix orderedtable enlarge proc. (#5937)Parashurama2017-06-051-0/+18
| | | This fixes issue #5917
* Merge branch 'araq2' into develAraq2017-05-171-1/+23
|\
| * Merge branch 'zahary' into araq2Andreas Rumpf2017-05-171-1/+23
| |\
| | * close #5757Zahary Karadjov2017-04-301-1/+23
| | |
* | | Fixes #5761.Dominik Picheta2017-05-171-1/+21
| | |