Commit Graph

3274 Commits

Author SHA1 Message Date
Clyybber
b85cc17998 Fix #9844 (#11216)
(cherry picked from commit 6be9b98e35)
2019-05-10 09:39:03 +02:00
cooldome
dbca89730b Fixes #7845 (Cannot raise generic exception)
(cherry picked from commit 541c2a3fec)
2019-04-29 13:35:45 +02:00
cooldome
3cf038027b fixes #10765 (#10993) [backport]
(cherry picked from commit de02fd0b89)
2019-04-11 15:15:43 +02:00
narimiran
0e34258749 remove the test for stuff that is not backported 2019-03-24 21:37:32 +01:00
Andreas Rumpf
c9c5abcdc1 fixes #10886 [backport] (#10897)
(cherry picked from commit 0b2a3f6f7f)
2019-03-24 19:07:08 +01:00
narimiran
2d1dea9484 keep only the relevant part of tbasics test 2019-02-21 08:56:43 +01:00
Araq
32780acc61 fixes 10697 [backport]
(cherry picked from commit 257965e105)
2019-02-20 19:46:19 +01:00
LemonBoy
3aeaa90bd8 Fix edge case in type hashing (#10601) [backport]
Empty types introduced by a template produced the same hash of the
"clean" type sharing the same name.

(cherry picked from commit 631a8ab57f)
2019-02-20 19:34:16 +01:00
narimiran
f1a78b8b4c tbitops: remove unavailable tests 2019-02-07 09:35:06 +01:00
Arne Döring
c9441c6f79 Vm bitops fixes (#10520) 2019-02-05 15:51:08 +01:00
Arne Döring
eb42853ff4 Fix vm signed xor (#10519)
* fix #10482

* undo changes

* fix for bitwise not

* remove dead opcode

(cherry picked from commit b80dbdb77d)
2019-02-05 15:41:40 +01:00
cooldome
c366a8e386 vm fix for bitwise signed ints (#10507)
* fixes #10482

* add missing file

* bug fix

(cherry picked from commit 1d5437e9d2)
2019-02-05 15:41:25 +01:00
Araq
3ffa9b2e78 fixes #9149 [backport]
(cherry picked from commit 07a0a61875)
2019-01-31 08:28:30 +01:00
Oscar Nihlgård
ba68025ce5 Support system.reset in vm (#10400)
(cherry picked from commit a4cdd25b19)
2019-01-22 06:31:28 +01:00
Araq
e21b578740 fixes #10075 [backport]
(cherry picked from commit aa7ad88978)
2019-01-14 09:18:27 +01:00
alaviss
1134f85faa os.walkDir: correctly evaluate paths when relative = true [0.19] (#10173) 2019-01-03 16:35:14 +01:00
narimiran
7beea1642d Revert "os.walkDir: correctly evaluate paths when relative = true"
This reverts commit 123c568236.
2018-12-31 11:20:10 +01:00
Araq
0b9d158d11 fixes #10033 [backport]
(cherry picked from commit bdb67201b2)
2018-12-29 10:52:09 +01:00
alaviss
123c568236 os.walkDir: correctly evaluate paths when relative = true 2018-12-29 10:51:43 +01:00
Timothee Cour
c16fa63f5e fix #9872: setLen now works properly at CT [backport]
(cherry picked from commit f838b1e6c1)
2018-12-15 10:24:54 +01:00
Araq
28946ed9f6 fixes #9864 [backport]
(cherry picked from commit af815c3c18)
2018-12-15 10:07:15 +01:00
Timothee Cour
c0e741778f fix #9832 (fixup) (#9859)
(cherry picked from commit d502ddea9e)
2018-12-15 10:06:45 +01:00
Timothee Cour
c3319fcad5 fixes #9832 (#9841) [backport]
(cherry picked from commit 05769020d3)
2018-12-15 10:06:25 +01:00
alaviss
b53d726c57 don't raise exception in the default handler 2018-11-24 21:53:35 +01:00
narimiran
ff66aae380 disable tasyncssl on appveyor 2018-11-24 20:16:12 +01:00
Yuriy Glukhov
219942658b Fixes 9716 [backport] 2018-11-24 17:35:24 +01:00
Ștefan Talpalaru
7dfb2a8cd3 fix segfault when calling shallow() on an empty string (#9782) [backport]
shallow() casts its string argument to a seq and then tries to access
its fields. Guess what happens when that string is nil, which seems to
be the representation of an empty string (both the default value and an
explicitly assigned "").

Segfault encountered when running "ntags -R ." on a large project. The relevant line:
a1c62c38e5/ntags.nim (lines-125)

(cherry picked from commit f8fa94cb20)
2018-11-24 12:21:04 +01:00
ishowta
9fcdc14527 Empty check in shallow [backport] (#9676) 2018-11-24 12:20:35 +01:00
cooldome
ad554a2013 Fixes discard bug in cpp codegen (#9747) [backport]
Fixes discard bug in cpp codegen

(cherry picked from commit 9b9f5dee0b)
2018-11-24 12:17:32 +01:00
Yuriy Glukhov
43b3582952 Fixed yield in nkObjConstr. Fixes #9694 [backport] (#9744)
* Fixed yield in nkObjConstr. Fixes #9694
* Separate expr lowering from state splitting, introduce a clear lowering internal error

(cherry picked from commit 5a2290f788)
2018-11-24 12:17:21 +01:00
cooldome
64a4c72392 Of operator in vm fixes [backport] (#9717)
* fixes #9701
*  fixes #9702
* optimize of statement to bool

(cherry picked from commit 8c1083d3b7)
2018-11-24 12:15:43 +01:00
Miran
3ef686011d Merge tests into a larger file (part 8 of ∞) (#9583)
* merge tuple tests

* merge trmacros tests

* merge template tests

(cherry picked from commit 66a76d3165)
2018-11-24 12:13:20 +01:00
Araq
f0e196e674 make more tests green 2018-11-04 13:28:02 +01:00
LemonBoy
1355dd1884 Fix transformation of yield in inline context (#9135)
When the loop variables are part of the envP block it is not safe to use
a nkFastAsgn.

Fixes #2656

(cherry picked from commit f98a3056c6)
2018-11-04 13:16:28 +01:00
Araq
fcbe611899 make some tests green again 2018-11-04 13:16:21 +01:00
LemonBoy
d37ec666d7 cherry pick 2018-11-04 09:02:03 +01:00
Ian
801c102881 #9348 Merge some small test files (#9561)
* Consolidated types issue tests
* Consolidated vm issue tests

(cherry picked from commit 5ddeead29c)
2018-11-01 18:03:51 +01:00
xzfc
c8786ad197 Fix strscans.scanp (#9518)
* strscans: fix typo

* strscans: fix #9240

* strscans: add tests

(cherry picked from commit 95a60dc780)
2018-11-01 18:02:33 +01:00
Araq
aa1def75c0 make tests\benchmarks programs compile again
(cherry picked from commit c804b606f9)
2018-11-01 18:02:07 +01:00
narimiran
2f48d2175b Closes #6986
(cherry picked from commit f4149ae535)
2018-11-01 18:01:58 +01:00
Araq
fb9aa0c821 correct tnoop test case 2018-11-01 17:59:26 +01:00
Andreas Rumpf
f8c341e31f make tests green again
(cherry picked from commit f5a2c6e19d)
2018-11-01 17:57:30 +01:00
recloser
fdce2e0188 Fix printing and comparing uninitialized strings
(cherry picked from commit 2b03bed2db)
2018-11-01 17:55:20 +01:00
Vindaar
5e48d4050e add test case
(cherry picked from commit 557fa85e02)
2018-11-01 17:55:12 +01:00
Miran
38b391ff62 merge stdlib tests (#9439)
(cherry picked from commit 9fb212cfdf)
2018-11-01 17:52:04 +01:00
jcosborn
42056874d1 added test for #4674 (#9438)
(cherry picked from commit 3b1ade0350)
2018-11-01 17:51:51 +01:00
Araq
c1a6ebf40d closes #6220
(cherry picked from commit c64391e30b)
2018-11-01 17:51:16 +01:00
Araq
8f8f3ba12f closes #5321
(cherry picked from commit 4644484fb7)
2018-11-01 17:50:53 +01:00
Vindaar
58726f9b81 fix #9394 by replacing fmt with strutils.% (#9417)
* fix #9394 by replacing `fmt` with normal string append

Until issue #7632 is fixed, use string append.

* use `strutils.%` instead of normal string add

(cherry picked from commit 82a1576263)
2018-11-01 17:50:38 +01:00
Araq
b65b360ac2 tests: disable flaky tests for now; closes #9421
(cherry picked from commit 381498b0db)
2018-11-01 17:49:55 +01:00