Commit Graph

2003 Commits

Author SHA1 Message Date
Ruslan Mustakov
f2bded180f async all() now immediately completes if arg is empty 2016-11-03 10:50:43 +07: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
Andreas Rumpf
f46168d654 Merge pull request #4828 from jfhg/unify_waitpid_handling
Unify waitpid handling
2016-10-09 19:03:12 +02:00
Felix Krause
39f03d816c Fixes #4871 2016-10-09 18:02:48 +02:00
Andrea Ferretti
4c52239394 Updated js console logging to avoid wrapping into array 2016-10-06 10:54:52 +02:00
Araq
d17709cc46 made test green for Windows 2016-09-30 22:14:29 +02:00
Johannes Hofmann
7f25db2dd1 rename tfalse.nim to tafalse.nim 2016-09-30 10:39:57 +02:00
Johannes Hofmann
8d85809d62 add testcase for exit code handling 2016-09-30 10:27:59 +02:00
Dominik Picheta
c188c2076b Merge pull request #4830 from cheatfate/disabletimetest
tupcoming_async: Disable real time test comparison
2016-09-25 17:18:58 +02:00
Dominik Picheta
927fce4c7f FutureVar[T] parameters are now completed automatically. 2016-09-25 16:05:22 +02:00
cheatfate
54977e3709 Disable time error test. 2016-09-25 15:28:57 +03:00
Dominik Picheta
cff6ec2155 Implements onProgressChanged callback for httpclient. 2016-09-24 22:58:10 +02:00
Dominik Picheta
0baef8e6ea Implements getContent and postContent for (Async)HttpClient. 2016-09-24 20:33:00 +02:00
Dominik Picheta
fa9ec7a6b5 Handle redirects in HttpClient's post procs & post test. 2016-09-24 17:50:58 +02:00
cheatfate
f40c1d3ad1 Add support for kqueue's EVFILT_VNODE (filesystem monitoring), and add test for it. 2016-09-24 05:16:39 +03:00
Andreas Rumpf
66bbf7518e fixes #4776 2016-09-24 02:27:12 +02:00
Andrea Ferretti
15f7094fde Added a dump macro for debugging 2016-09-22 12:07:36 +02:00
Andrea Ferretti
693b2b0f5d Added js console object 2016-09-21 17:35:45 +02:00
Yuriy Glukhov
82b022ebc6 JS: Fixed ICE on ptr assignment 2016-09-20 17:01:53 +03:00
Dominik Picheta
1fb5dd2477 Fixes #4797. 2016-09-19 19:36:35 +02:00
Wh1teDuke
248b5c0468 Run Option: use now processSingleTest 2016-09-19 16:25:39 +02:00
Wh1teDuke
ddb70d33f8 Add processSingleTest, remove file arg from processCategory 2016-09-19 16:24:15 +02:00
Dominik Picheta
8386476592 Implements proxy support for (Async)HttpClient. Ref #4423.
Fixes #2160.
2016-09-18 22:59:12 +02:00
Dominik Picheta
0c99523ad3 Implements timeouts for synchronous HttpClient. 2016-09-18 19:08:12 +02:00