Araq
de844c7767
attempt to make travis green again
2016-12-01 09:54:45 +01:00
Araq
2a7b4fda78
fixes #5081
2016-12-01 08:46:44 +01:00
Araq
8494338bcb
fixes #5055
2016-11-30 22:25:56 +01:00
Araq
7b44896e03
fixes #5079
2016-11-30 21:10:22 +01:00
Araq
b1b2dd606b
fixes #5076
2016-11-30 11:00:51 +01:00
Ruslan Mustakov
2c146445bc
Added deques module, deprecating queues
2016-11-24 19:11:51 +07:00
Andreas Rumpf
01ae0d28d4
recursive modules are only detected to improve error messages
2016-11-24 12:27:21 +01:00
Andreas Rumpf
bc9015df50
make tests green again
2016-11-24 11:48:23 +01:00
Andreas Rumpf
2316c71e09
reverted deepcopy fix for now
2016-11-24 10:52:33 +01:00
Araq
074f276c8a
disallow recursive module dependencies
2016-11-23 23:23:31 +01:00
Andreas Rumpf
9ca3ae14ab
Merge pull request #5036 from flyx/tablesdelfix
...
Fixes #5035
2016-11-19 10:46:43 +01:00
Andreas Rumpf
3eba4b510f
added test case for deepcopy
2016-11-19 09:22:29 +01:00
Felix Krause
93a998204c
Fixes #5035
2016-11-18 23:42:15 +01:00
Felix Krause
434c27343e
Parse 'Z' as valid timezone if offset is expected
2016-11-14 18:46:35 +01:00
Felix Krause
aa08c32c2b
Improved -; fixed tests
...
* added prefix `-` operator for TimeInterval
* improved `-` for both TimeInterval and TimeInfo
* Fixed a DST test
2016-11-14 18:28:55 +01:00
Felix Krause
544a2cfe1a
Fixed daylight saving time
...
* 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
2016-11-14 18:28:55 +01:00
Felix Krause
91a0674961
Fixed timezone rendering, added test
2016-11-10 19:03:46 +01:00
Andreas Rumpf
4c79583a95
Merge pull request #5002 from goldenreign/time-compare-nosideeffect
...
Add 'noSideEffect' pragma for Time type's operators. Fixes #4981
2016-11-07 16:52:34 +01:00
Andreas Rumpf
be296c3274
Merge pull request #4984 from flyx/timezonefix
...
Fixed timezone handling
2016-11-07 14:28:54 +01:00
goldenreign
554105ff7c
Add 'noSideEffect' pragma for Time type's operators
2016-11-07 12:14:28 +07:00
Ruslan Mustakov
f2bded180f
async all() now immediately completes if arg is empty
2016-11-03 10:50:43 +07:00
Felix Krause
9d5de8021b
Use ISO 8601 format for times.$. Fixed tests.
...
* `$` now uses format() with explicit time zone.
* Fixed errors in rendering "z", "zz" and "zzz"
* Updated tests
2016-11-01 21:14:52 +01:00
Felix Krause
170745eb39
Removed tzname because it's broken
...
* 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
2016-11-01 20:26:50 +01:00
Andreas Rumpf
4884a56e38
Merge pull request #4980 from jlp765/tostring
...
Add nill value handling for seq/sets to system.CollectionToString()
2016-11-01 09:45:37 +01:00
jlp765
55b28f86e1
add test: echo a seq with a nil value
2016-11-01 13:41:31 +10:00
Araq
5494d78e74
Merge branch 'braces' into refactor-identcache
2016-10-31 12:04:52 +01:00
andri lim
74c6500a30
add test
2016-10-27 20:01:23 +07:00
Andreas Rumpf
2f725e923e
Merge pull request #4924 from nigredo-tori/fix-4917
...
Make createDir return discardable bool
2016-10-24 20:30:52 +02:00
Araq
0eb70e64c4
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2016-10-24 20:20:20 +02:00
Araq
a85e954b5d
make tgetfileinfo work on Windows
2016-10-24 20:18:49 +02:00
Araq
6d645e5240
Merge branch 'devel' of https://github.com/rudis/Nim into rudis-devel
2016-10-24 20:11:00 +02:00
Araq
bad35a2709
cleanup tgorge test
2016-10-24 20:10:10 +02:00
Andreas Rumpf
56181da204
Merge pull request #4800 from Wh1teDuke/FixTesterRunOpt
...
[Tester] allow running single tests with 'run' option
2016-10-24 19:02:34 +02:00
Andreas Rumpf
00f09f1309
Merge pull request #4819 from andreaferretti/usefulmacros
...
Some useful macros
2016-10-24 18:41:45 +02:00
Andreas Rumpf
adeb62120c
Merge pull request #4812 from andreaferretti/jsconsole
...
Added js console object
2016-10-24 18:38:41 +02:00
Andreas Rumpf
cceb6c625c
Merge pull request #4872 from flyx/gorgefix
...
Fixes #4871
2016-10-24 17:40:32 +02:00
Felix Krause
73b0bb52bb
Table fixes. fixes #4901
...
* 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
2016-10-23 11:21:52 +02:00
Dmitry Polienko
1cd4799b01
Improve as previously discussed
...
Better name for exposed primitive function, checks for pre-existing files
2016-10-22 18:39:10 +07:00
Dmitry Polienko
45b432b901
Revert createDir signature, expose rawCreateDir
2016-10-22 17:37:28 +07:00
Dmitry Polienko
48ef6761d8
Make createDir return discardable bool
2016-10-22 12:29:03 +07:00
Jonathan Bernard
b7232bd425
Fix #4922 , bug in times.parse, mishandling DST.
2016-10-21 17:06:36 -05:00
cheatfate
0c69891b8d
One more attempt to fix #4867
2016-10-21 11:15:33 +03:00
Andreas Rumpf
7c0fa52bbd
fixes #4875
2016-10-20 21:40:04 +02:00
Andreas Rumpf
a8dc4df8be
removed async test that never produced reliable results
2016-10-20 15:20:57 +02:00
Andreas Rumpf
bae3baf9cc
fixes #4856
2016-10-20 15:20:27 +02:00
Andreas Rumpf
d0ec83eaa8
fixes #4863
2016-10-19 19:28:27 +02:00
Araq
10bd488daa
implements #?braces syntax
2016-10-16 00:35:49 +02:00
Andreas Rumpf
3ba2d08bbc
Merge pull request #4015 from arnetheduck/initallocator-fix
...
fix initAllocator not being called when defined(nogc) and not defined…
2016-10-13 23:25:05 +02:00
Jonathan Bernard
68d3486f5a
Bugfix for times.initInterval (issue #4889 )
...
`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)
```
2016-10-12 15:44:21 -05:00
Jacek Sieka
4435d83a88
run gctest for gc:none
2016-10-12 21:32:15 +08:00