Commit Graph

5043 Commits

Author SHA1 Message Date
Dominik Picheta
fffdae32c7 Fixed TimeInterval bug. 2016-01-08 11:54:34 +00:00
Dominik Picheta
09b159b816 Fixed ttime test. Improved docs in times module. 2016-01-08 11:46:11 +00:00
Dominik Picheta
596d400825 Merge branch 'times_intervals' of https://github.com/jlp765/Nim into jlp765-times_intervals 2016-01-08 11:12:16 +00:00
Andreas Rumpf
0844941b35 fixes regressions 2016-01-08 12:08:42 +01:00
Andreas Rumpf
4d10937a30 fixes regressions 2016-01-05 15:39:49 +01:00
Andreas Rumpf
1a2bda45ec fixes #2007 2016-01-05 10:20:24 +01:00
Andreas Rumpf
164ebb6762 made test green 2016-01-05 10:19:36 +01:00
andri lim
aebad711ea fixed #2240 and #3586 2016-01-05 07:52:56 +07:00
Andreas Rumpf
3d7c57db88 fixes #2659 2016-01-04 03:10:09 +01:00
Andreas Rumpf
159a2ff955 fixes #3636 2016-01-04 02:04:59 +01:00
Andreas Rumpf
8fb6865b24 fixes #1725 2016-01-04 00:51:45 +01:00
Andreas Rumpf
b4c62d5fed async works again 2016-01-03 23:20:53 +01:00
Andreas Rumpf
813f98fb34 further progress on closure iterators; tforum still failing 2016-01-03 21:16:07 +01:00
Andreas Rumpf
307a6095fa made closure iterators tests green, updated docs 2015-12-31 00:16:38 +01:00
Andreas Rumpf
250e81ceda Merge branch 'devel' into new-ll 2015-12-29 20:45:22 +01:00
Andreas Rumpf
255177f7cd new db_sqlite requires deadCodeElim:on because not every sqlite3_column_name 2015-12-29 20:39:52 +01:00
Andreas Rumpf
bbb5ce38c7 updated test cases 2015-12-29 20:25:05 +01:00
Andreas Rumpf
e079db95f8 changed testcase for new LL semantics 2015-12-29 19:42:11 +01:00
Andreas Rumpf
99f167724b updated test case for changed LL 2015-12-29 19:41:26 +01:00
trustable-code
3c557a0144 fix issue #3550 2015-12-24 00:07:03 +01:00
Andreas Rumpf
86bb9d8b47 Merge pull request #3651 from jangko/vm_'excl'
fixed compile time `excl ` cause SIGSEGV #3639
2015-12-21 00:40:24 +01:00
jangko
26d02c9120 fixed VM touint conversion #2514 2015-12-19 12:53:51 +07:00
jangko
60a400eeb0 fixed compile time excl cause SIGSEGV #3639 2015-12-17 10:14:48 +07:00
JamesP
8af8f7673b add timeinterval helping functions as per issue #3609
add tests to ttime.nim for timeinterval add/subtract functionality

Changed assert to doAssert in ttime.nim
Added extra tests to ttime.nim
Removal of singular help procs for working with TimeIntervals
Added TimeIin proc toSeconds(a: TimeInfo, interval: TimeInterval) where subtracting a year gave wrong results
Add overflow of units on initInterval eg, 65 seconds is 5 seconds and 1 minute
2015-12-08 10:16:42 +10:00
Dominik Picheta
8e38510aff Merge pull request #3617 from FedericoCeratto/3611
Fix fsmonitor filter logic, add test. Closes: #3611
2015-12-04 15:17:03 +00:00
Araq
760242b870 removes 'x is iterator' special casing in the language 2015-12-03 01:08:03 +01:00
Federico Ceratto
05b856df23 Closes: #3611 2015-12-02 16:05:50 +00:00
Dominik Picheta
93ea2e0752 Merge pull request #3610 from jlp765/timesX
Move tests from times module to ttime.nim test file
2015-12-02 12:28:37 +00:00
Andreas Rumpf
92e80e68bd make tests green again 2015-12-01 21:22:23 +01:00
JamesP
c660a7f942 add assertion tests from times module to ttime.nim test file in tests\stdlib 2015-12-01 18:07:31 +10:00
Araq
0d8c762452 cleanup of some tests 2015-12-01 00:53:30 +01:00
Araq
217e0ab6e9 lambda lifting support for iterToProc plugin 2015-12-01 00:53:30 +01:00
Yuriy Glukhov
2fcc37fd2b fixed float formatting for js 2015-11-26 01:10:52 +02:00
Charles Blake
a1df79d5f2 Add a unit test that covers issue 3477
https://github.com/nim-lang/Nim/issues/3477
2015-11-19 07:03:06 -05:00
Araq
ba6d0eb4db fixes #3541 2015-11-18 16:07:20 +01:00
Dominik Picheta
29fd3edb9c Merge pull request #3514 from vegansk/3513_pgsql_prepstat
Fixed issue 3513: wrong setupQuery realization
2015-11-11 16:09:18 +00:00
Dominik Picheta
60e5a2b2f5 Merge pull request #3504 from Matt14916/xmlparser-entities
Create entity nodes with xmlparser, add a test to xmlparser
2015-11-08 13:07:38 +00:00
Anatoly Galiulin
c017904363 Fixed issue 3513: wrong setupQuery realization 2015-11-06 10:24:23 +06:00
Dominik Picheta
0249bd0e6c Add missing untestable test. 2015-11-01 10:37:04 +00:00
Matt Sullivan
8671656e6f Add a test to xmlparser 2015-10-31 13:30:07 -05:00
Adam Strzelecki
f838c1baa4 fixes #3498
Previously it was not possible to use template arguments in template body as
the symbols were not resolved correctly leading to Error: undeclared
identifier: 'XX', eg.:

   template defaultOf[T](t: T): expr = (var d: T; d)
   echo defaultOf(1) #<- invalid identifier, but should output 0
2015-10-30 12:05:02 +01:00
Adam Strzelecki
47e45dee7e fixes #3496
The problem comes from the fact that macroOrTmpl[...] is transformed by
semSubscript which is trying to evaluate macroOrTmpl identifier in place. This
is okay for non-generic macros or templates, but wrong for generic ones, that
do not have a chance to receive their generic arguments explicitly specified in
brackets.

Solution:

1. macroOrTmpl[...] where macroOrTmpl is non-generic macro or template, then
   macroOrTmpl is evaluated before applying brackets. (as before)

2. macroOrTmpl[...] where macroOrTmpl is generic macro or template, then if:

   a. It comes from macroOrTmpl[...](...) call expr (efInCall), then macroOrTmpl
      is turned into a symbol (efNoEvaluate) rather than evaluating it in place,
      then whole bracket expr is returned to semIndirectOp which transforms it
      to proper generic macro or template call with explicit generic arguments.

   b. macroOrTmpl[...] does not come from call expr, as above macroOrTmpl is
      transformed to symbol, then it is transformed into proper generic macro or
      template call with explicit generic arguments and no normal arguments.
2015-10-29 23:10:45 +01:00
Dominik Picheta
82f3cab1ac Improved postgres docs and added untestable tests. 2015-10-27 11:06:00 +01:00
Araq
86e2d6ee90 fixes #3476 2015-10-27 08:37:56 +01:00
Araq
aa36e73ecf fixes #3431, fixes #3370, fixes #3468 2015-10-25 02:22:50 +01:00
Araq
cd7b5ae1eb fixes #1799 properly 2015-10-25 02:35:18 +02:00
Andreas Rumpf
da33d5ef62 Merge pull request #3464 from yglukhov/disable-failing-tests
Fixed tests for TravisCI.
2015-10-22 21:14:54 +02:00
Yuriy Glukhov
e5aefbd1d4 Fixed tests for TravisCI 2015-10-22 21:34:37 +03:00
Araq
9cc25f8b77 fixes #3452 2015-10-22 12:14:32 +02:00
Araq
d93507fd2e fixes #3338 2015-10-22 10:24:46 +02:00