summary refs log tree commit diff stats
path: root/tests/stdlib
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #5080 from FedericoCeratto/httpheadersDominik Picheta2016-12-011-0/+28
|\ | | | | Add HTTP header deletion, improve tests
| * Add HTTP header deletion, improve testsFederico Ceratto2016-12-011-0/+28
| |
* | Rewrite xmltools.innerTextDmitry Polienko2016-11-301-2/+16
|/ | | | Make it recursive, define for node types other than xnElement
* Added deques module, deprecating queuesRuslan Mustakov2016-11-241-5/+5
|
* Parse 'Z' as valid timezone if offset is expectedFelix Krause2016-11-141-0/+4
|
* Improved `-`; fixed testsFelix Krause2016-11-141-2/+2
| | | | | | * added prefix `-` operator for TimeInterval * improved `-` for both TimeInterval and TimeInfo * Fixed a DST test
* Fixed daylight saving timeFelix Krause2016-11-141-1/+22
| | | | | | | | | * When formatting timezone, substract 1 hour from timezone when isDST * Do not depend DST in current timezone when parsing arbitrary date because formatted timestamps are never in DST. * On the way, removed an unnecessary line in parsing code which could cause bugs. * Added DST tests
* Fixed timezone rendering, added testFelix Krause2016-11-101-0/+12
|
* Merge pull request #5002 from goldenreign/time-compare-nosideeffectAndreas Rumpf2016-11-071-0/+11
|\ | | | | Add 'noSideEffect' pragma for Time type's operators. Fixes #4981
| * Add 'noSideEffect' pragma for Time type's operatorsgoldenreign2016-11-071-0/+11
| |
* | Use ISO 8601 format for times.`$`. Fixed tests.Felix Krause2016-11-011-51/+66
| | | | | | | | | | | | * `$` now uses format() with explicit time zone. * Fixed errors in rendering "z", "zz" and "zzz" * Updated tests
* | Removed tzname because it's brokenFelix Krause2016-11-011-12/+12
|/ | | | | | | * No mapping between TimeInfo.tzname and TimeInfo.timezone * tzname of time.h is not well-defined, may have almost arbitrary length, and localization may differ * Code used hardcoded "UTC" string
* add test: echo a seq with a nil valuejlp7652016-11-011-0/+2
|
* Merge pull request #4924 from nigredo-tori/fix-4917Andreas Rumpf2016-10-241-0/+22
|\ | | | | Make createDir return discardable bool
| * Improve as previously discussedDmitry Polienko2016-10-221-0/+10
| | | | | | | | Better name for exposed primitive function, checks for pre-existing files
| * Revert createDir signature, expose rawCreateDirDmitry Polienko2016-10-221-7/+0
| |
| * Make createDir return discardable boolDmitry Polienko2016-10-221-0/+19
| |
* | make tgetfileinfo work on WindowsAraq2016-10-241-8/+16
| |
* | Merge branch 'devel' of https://github.com/rudis/Nim into rudis-develAraq2016-10-241-1/+31
|\ \
| * | tests: add more tests for getFileInfo()Simon Ruderich2016-09-171-1/+31
| | |
* | | Fix #4922, bug in times.parse, mishandling DST.Jonathan Bernard2016-10-211-0/+16
| |/ |/|
* | Bugfix for times.initInterval (issue #4889)Jonathan Bernard2016-10-121-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `initInterval` had logic to calculate and carry overflowed fields (65 seconds turns into 5 seconds and carries 1 minute). However, we were not including that carried value when we recalculate the carry over for the next period of time.So if you had, for example, 3600 seconds, we carried 60 minutes into the minutes calculation, but when we calculated how much we should carry into the hours value we only considered what the user originally supplied for the minutes field, and forgot to include those 60 carried minute. So, for example, with the previous implementation this was true: `seconds(60 * 60 * 24) == seconds(0)` Or, as failing tests: ```nimrod import times assert seconds(60 * 60 * 24) != seconds(0) assert seconds(60 * 60 * 24) == days(1) ```
* | Implements onProgressChanged callback for httpclient.Dominik Picheta2016-09-241-3/+22
| |
* | Implements getContent and postContent for (Async)HttpClient.Dominik Picheta2016-09-241-0/+19
| |
* | Handle redirects in HttpClient's post procs & post test.Dominik Picheta2016-09-241-18/+17
| |
* | Fixes #4797.Dominik Picheta2016-09-191-0/+4
| |
* | Implements proxy support for (Async)HttpClient. Ref #4423.Dominik Picheta2016-09-181-0/+6
| | | | | | | | Fixes #2160.
* | Implements timeouts for synchronous HttpClient.Dominik Picheta2016-09-181-0/+13
| |
* | Improvements to httpclient. Refs #4423.Dominik Picheta2016-09-181-0/+53
|/ | | | | | * Adds ability to query HttpCode and compare it with strings. * Moves HttpMethod to HttpCore module. * Implements synchronous HttpClient using {.multisync.}.
* Use array encoding for non-UTF-8 strings in marshal. Fixes #4779.Ruslan Mustakov2016-09-161-2/+10
|
* Merge pull request #4629 from flyx/times-parse-yeardayAndreas Rumpf2016-08-251-38/+32
|\ | | | | Calculate correct yearday in times.parse
| * Improved times testsFelix Krause2016-08-211-38/+32
| | | | | | | | | | | | | | * Added check for yearday * Changed some test dates to check different equivalence classes of yearday (before leap day, at leap day, after february in leap year, after february in non-leap year)
* | Fixed tests to expect [Suite] output from unittestFelix Krause2016-08-242-0/+5
|/
* make tests green againAndreas Rumpf2016-07-291-1/+3
|
* Update htmlparser test ``output`` variableStephane Fontaine2016-07-281-2/+8
|
* htmlparser: Add test for paragraph inside <dd,li>Stephane Fontaine2016-07-271-0/+38
|
* fixes #4494Andreas Rumpf2016-07-221-0/+6
|
* Fix split stdlib testJoey Payne2016-07-011-1/+1
|
* Add os tests for directory creation, iteration and deletionJoey Payne2016-06-201-8/+84
|
* moved random procs from math to its own module (breaking change)Andreas Rumpf2016-05-302-2/+2
|
* Merge pull request #4130 from lihf8515/develAndreas Rumpf2016-05-261-23/+35
|\ | | | | Update parsecfg.nim
| * Update tparscfg.nimlihf85152016-05-021-23/+35
| |
* | Merge pull request #4025 from flyx/highlight-yamlAndreas Rumpf2016-05-121-0/+139
|\ \ | |/ |/| YAML highlighting support for doctools/highlite
| * Fixes to YAML highlighting support, added testsFelix Krause2016-04-011-0/+139
| |
* | Add parseUInt and parseBiggestUInt functions to stdlib (parseutils, strutils)Anatoly Galiulin2016-03-301-0/+11
|/
* SpellcheckFederico Ceratto2016-02-291-1/+1
|
* Fix tmitems test for changed behaviour of jsondef2016-02-241-2/+2
|
* Fix test cases for JSON object changesdef2016-02-241-1/+1
|
* Fixed issue 3539, added testAnatoly Galiulin2016-01-281-0/+39
|
* makes tests greenAndreas Rumpf2016-01-151-1/+1
|