Commit Graph

2460 Commits

Author SHA1 Message Date
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
Adam Strzelecki
abb82554b7 compiler/msgs: Default to stderr for diagnostics
Previously we were defaulting to stdout for diagnostics, which could interfere
with scripts or `nim c -r' programs outputting their results to stdout,
possibly mixing their output with compiler messages.

This change makes now Nim to be inline with other compilers emitting
diagnostics to stderr. Also now --stdout option has proper meaning making all
diagnostics to be sent to stdout instead.

NOTE: Tester now calls compiler with --stdout.
2015-10-16 20:55:17 +02:00
Yuriy Glukhov
2166b7bc46 Fixed ret by var in js 2015-10-15 16:04:53 +03:00
Araq
c97cbe7abd fixes #3299 2015-10-15 09:31:54 +02:00
Aman Gupta
6e8cb658c3 Merge remote-tracking branch 'origin/devel' into appveyor 2015-10-13 16:14:19 -07:00
Araq
a40ace648d fixes regression: tobjconstr2 test works again 2015-10-14 00:41:27 +02:00
Aman Gupta
e2dbf222e6 Merge remote-tracking branch 'origin/devel' into appveyor 2015-10-13 15:25:40 -07:00
Araq
8be9e46403 udpated the compiler and tester to use getOrDefault 2015-10-13 14:10:33 +02:00
Araq
d8b0edc323 Merge branch 'mget' of https://github.com/def-/Nim into def--mget
Conflicts:
	lib/pure/collections/critbits.nim
	lib/pure/collections/tables.nim
	lib/pure/xmltree.nim
	lib/system/sets.nim
	tests/collections/ttables.nim
	tests/collections/ttablesref.nim
2015-10-13 00:22:27 +02:00
Araq
2c33ebed7b improves new tests 2015-10-12 21:12:00 +02:00
Andreas Rumpf
7b9d929d50 Merge pull request #3423 from petermora/breakSequtils
Break sequtils
2015-10-12 20:42:17 +02:00
Araq
645cf70112 disable new BoehmGC tests on Windows 2015-10-12 19:58:43 +02:00
Araq
967c20743a Merge branch 'gc-fixes' of https://github.com/rbehrends/Nim into rbehrends-gc-fixes 2015-10-12 17:34:44 +02:00
Araq
4705cf2308 cleaned up ospaths module 2015-10-12 16:55:23 +02:00
Aman Gupta
c3415a27d7 copy server.dll too? 2015-10-08 11:00:02 -07:00
Aman Gupta
a1750bd431 skip sdl/opengl/fsmonitor tests when unavailable 2015-10-08 10:58:52 -07:00
Aman Gupta
5bb0820596 show failure code 2015-10-08 10:58:37 -07:00
Aman Gupta
cadef43786 standardize on forward slashes for paths 2015-10-07 21:42:12 -07:00
Aman Gupta
f49cffeb19 framework is required 2015-10-07 18:28:57 -07:00
Aman Gupta
24ec975aa1 fix compile error 2015-10-07 18:15:59 -07:00
Aman Gupta
f0793a6d97 collect any output of appveyor command 2015-10-07 17:50:54 -07:00
Aman Gupta
582c5054a1 report duration to appveyor runner 2015-10-07 16:42:08 -07:00
Aman Gupta
cdd59ebf20 fix unsafeaddr test 2015-10-07 16:27:11 -07:00
Aman Gupta
3dfcaec25f use category as filename, and full filename in test name 2015-10-07 16:27:06 -07:00
Aman Gupta
6af9ac18f1 clean up whitespace on error msg 2015-10-07 16:25:03 -07:00
Aman Gupta
c34cbe690c tie into appveyor test results api 2015-10-07 16:06:51 -07:00
Aman Gupta
c2940260e5 avoid sqlite db on travis and appveyor 2015-10-07 16:06:31 -07:00
Andreas Rumpf
050e4815d0 Merge pull request #3314 from haiodo/emscripten-support
Emscripten support
2015-10-07 09:31:47 +02:00
Aman Gupta
391f2fc9b1 initialize new fields to empty values 2015-10-06 16:06:14 -07:00
Aman Gupta
7f5c49e204 copy nimrtl into lib, reset LD_LIBRARY_PATH after use 2015-10-06 15:54:12 -07:00
Aman Gupta
2240fd3f3f add tfile/tline assertions for template expansion file/line 2015-10-06 15:47:07 -07:00
Aman Gupta
eea8d604d0 Merge remote-tracking branch 'origin/devel' into fix-test-failures 2015-10-06 11:06:41 -07:00
Araq
8507f95d68 fixes #2637 2015-10-06 15:51:00 +02:00
Peter Mora
b284ace099 fixing unittest 2015-10-06 08:24:43 +02:00