summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* make tests green againAndreas Rumpf2016-11-244-4/+4
|
* reverted deepcopy fix for nowAndreas Rumpf2016-11-241-0/+1
|
* disallow recursive module dependenciesAraq2016-11-236-4/+14
|
* Merge pull request #5036 from flyx/tablesdelfixAndreas Rumpf2016-11-191-1/+24
|\ | | | | Fixes #5035
| * Fixes #5035Felix Krause2016-11-181-1/+24
| |
* | added test case for deepcopyAndreas Rumpf2016-11-191-0/+94
|/
* 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
| |
* | Merge pull request #4984 from flyx/timezonefixAndreas Rumpf2016-11-071-51/+66
|\ \ | |/ |/| Fixed timezone handling
| * 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
* | async all() now immediately completes if arg is emptyRuslan Mustakov2016-11-031-0/+9
|/
* Merge pull request #4980 from jlp765/tostringAndreas Rumpf2016-11-011-0/+2
|\ | | | | Add nill value handling for seq/sets to system.CollectionToString()
| * add test: echo a seq with a nil valuejlp7652016-11-011-0/+2
| |
* | Merge branch 'braces' into refactor-identcacheAraq2016-10-311-0/+432
|\ \ | |/ |/|
| * implements #?braces syntaxAraq2016-10-161-0/+432
| |
* | add testandri lim2016-10-271-0/+13
| |
* | 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
| | |
* | | Merge branch 'devel' of github.com:nim-lang/Nim into develAraq2016-10-244-3/+35
|\ \ \
| * \ \ Merge pull request #4800 from Wh1teDuke/FixTesterRunOptAndreas Rumpf2016-10-242-3/+9
| |\ \ \ | | | | | | | | | | [Tester] allow running single tests with 'run' option
| | * | | Run Option: use now processSingleTestWh1teDuke2016-09-191-1/+1
| | | | |
| | * | | Add processSingleTest, remove file arg from processCategoryWh1teDuke2016-09-191-2/+8
| | | | |
| * | | | Merge pull request #4819 from andreaferretti/usefulmacrosAndreas Rumpf2016-10-241-0/+13
| |\ \ \ \ | | | | | | | | | | | | Some useful macros
| | * | | | Added a dump macro for debuggingAndrea Ferretti2016-09-221-0/+13
| | | | | |
| * | | | | Merge pull request #4812 from andreaferretti/jsconsoleAndreas Rumpf2016-10-241-0/+13
| |\ \ \ \ \ | | | | | | | | | | | | | | Added js console object
| | * | | | | Updated js console logging to avoid wrapping into arrayAndrea Ferretti2016-10-061-2/+6
| | | | | | |
| | * | | | | Added js console objectAndrea Ferretti2016-09-211-0/+9
| | |/ / / /
* | | | | | 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
| | | | | | |
* | | | | | | cleanup tgorge testAraq2016-10-242-2/+2
| |/ / / / / |/| | | | |
* | | | | | Merge pull request #4872 from flyx/gorgefixAndreas Rumpf2016-10-243-0/+15
|\ \ \ \ \ \ | | | | | | | | | | | | | | Fixes #4871
| * | | | | | Fixes #4871Felix Krause2016-10-093-0/+15
| | |_|_|_|/ | |/| | | |
* | | | | | 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
* | | | | | Fix #4922, bug in times.parse, mishandling DST.Jonathan Bernard2016-10-211-0/+16
| |_|_|_|/ |/| | | |
* | | | | One more attempt to fix #4867cheatfate2016-10-211-0/+16
| | | | |
* | | | | fixes #4875Andreas Rumpf2016-10-201-0/+13
| | | | |
* | | | | removed async test that never produced reliable resultsAndreas Rumpf2016-10-201-66/+0
| | | | |
* | | | | fixes #4856Andreas Rumpf2016-10-201-0/+14
| | | | |
* | | | | fixes #4863Andreas Rumpf2016-10-191-0/+20
| | | | |
* | | | | Merge pull request #4015 from arnetheduck/initallocator-fixAndreas Rumpf2016-10-131-0/+7
|\ \ \ \ \ | | | | | | | | | | | | fix initAllocator not being called when defined(nogc) and not defined…
| * | | | | run gctest for gc:noneJacek Sieka2016-10-121-0/+7
| | | | | |
* | | | | | 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) ```