alaviss
4088d7f2ae
terminal: fix fgColor/bgColor commands [backport] ( #15554 )
...
Since #8296 , fgSetColor is no longer a global. These commands were
probably left out from the change as an oversight, so some tests have
been added to make sure this won't happen again.
(cherry picked from commit d1af9587b8 )
2020-10-13 21:22:03 +02:00
narimiran
8ec5dc1969
Revert "[backport] fix #15064 , strscans.scanf edge case for '$+' ( #15223 )"
...
This reverts commit f713c54166 .
2020-09-12 08:42:43 +02:00
Miran
f713c54166
[backport] fix #15064 , strscans.scanf edge case for '$+' ( #15223 )
...
(cherry picked from commit 15ff89cec1 )
2020-09-11 14:59:52 +02:00
narimiran
965f7ebf54
disable the new fragile test in 'tosproc.nim'
2020-05-14 09:57:10 +02:00
Timothee Cour
931a70b123
fix a critical bug in windows.osproc leading to resource leaks and blocking IO [backport] ( #14296 )
...
(cherry picked from commit d11cb9d495 )
2020-05-13 08:17:52 +02:00
Timothee Cour
26681769e8
tables/sharedtables/intsets/etc: fix #13496 , #13504 , #13505 ; add lots of tests ( #13498 ) [backport]
...
* fix #13496 handle tombstones
* add test
* more tests
* fix #13504 ; add SharedTable tests
* fix #https://github.com/nim-lang/Nim/issues/13505 intsets.missingOrExcl silently gave wrong results sometimes
* add test for tintsets
(cherry picked from commit 42dad3a836 )
2020-04-14 07:09:36 +02:00
Andrey Makarov
fbf28d1ce7
fix 3 minor bugs in joinPath (see #13455 ) ( #13462 ) [backport]
...
(cherry picked from commit 3dad130034 )
2020-04-14 07:06:57 +02:00
Leorize
0a8dcd5e11
azure: disable failing tests
...
(cherry picked from commit 73c8391fd3 )
2019-10-08 11:43:16 +02:00
Tomohiro
5785444520
Fix how relativePath handle case sensitiviy ( #12312 ) [backport]
...
(cherry picked from commit 64d5e25821 )
2019-10-03 09:32:46 +02:00
Federico Ceratto
fa7f5742d3
Fix spellings ( #12277 ) [backport]
...
(cherry picked from commit 39290cf88c )
2019-09-30 18:43:35 +02:00
Araq
fa5707e7e2
fixes #11713 , fixes #1034
2019-09-04 11:20:30 +02:00
Andreas Rumpf
d70e292571
makes more tests green
2019-09-02 22:03:06 +02:00
Vindaar
eff0837ff4
fixes #12015 by also checking kind of typeNode ( #12016 )
...
* fixes #12015 by also checking kind of `typeNode`
If a tuple field is aliased it'll appear the same as a ref type in a
call to `getType` if only for the kind of the resulting `NimNode` is
checked (that is a `nnkBracketExpr`)
* fix test case due to #12017 and add more realistic test case
Adds an additional test case, which includes generics and is closer to
the real failure I encountered
* remove previous fix and fix differently after all
The previous fix was incomplete, because it failed for generics.
Note that the `of "tuple"` is not actually needed, the
`nnkBracketExpr` branch in the `else` branch would catch it too, but I
decided to introduce it for clarity. However, the latter is actually
needed, because it seems for aliases of `seq` we end up in it.
* update comment about global `%` proc in json test
2019-08-27 22:23:47 +02:00
pgkos
296dfae8af
Fixes splitfile ( #11918 ) [bugfix]
2019-08-15 15:22:14 +02:00
konradmb
addd7b5e20
Fix issue #10726 - HTTP response without Content-Length is not accessible ( #11904 )
...
* Add patch by @xenogenesi
* Async test for HTTP/1.1 without Content-Length
* Apply suggestions from code review
Co-Authored-By: Dominik Picheta <dominikpicheta@googlemail.com >
2019-08-08 08:41:56 +02:00
Leorize
51d998390c
tgetaddrinfo: disable ICMP tests for Haiku
...
They're not supported by Haiku's getaddrinfo()
2019-08-04 12:15:17 +01:00
Leorize
df32c45757
tgetaddrinfo: use sizeof() instead of hardcoding
...
OS like Haiku have a bigger sockaddr_in struct for legacy(?) reasons.
Using sizeof() should account for the different struct sizes.
2019-08-04 12:15:17 +01:00
Araq
76f9ddb6ab
fixes #11723
2019-07-15 17:22:01 +02:00
narimiran
326e3ad09d
[bugfix] fix #11588 , don't check if SharedTable is initialized
2019-06-26 17:16:55 +02:00
Kaushal Modi
7182922622
[feature] Added os.delEnv; add delEnv support to nimscript too ( #11466 )
...
[feature] Fixes https://github.com/nim-lang/Nim/issues/11452 .
2019-06-15 11:32:26 +02:00
Charles Blake
bde899d4f8
Attempt to close https://github.com/nim-lang/Nim/issues/11430
2019-06-12 07:44:56 -04:00
Kaushal Modi
2334680b3d
Use TMPDIR env var if available to get the temp dir name ( #11443 ) [bugfix]
...
Additionally, use normalizePathEnd to suffix the dir name with "/" or
"\" as appropriate for the current OS.
Fixes https://github.com/nim-lang/Nim/issues/11439 .
2019-06-10 19:59:51 +02:00
Arne Döring
cfeb9d2c50
Bit operator names 2 ( #11413 )
...
* add bit operator names
* add test for bitop alias
2019-06-06 08:36:20 +02:00
Andreas Rumpf
5eb47f8ed9
fixes #11369 ( #11381 )
2019-06-02 14:24:38 +02:00
jcosborn
433ce7bea2
move test for #7632 above import strformat ( #11270 )
2019-05-20 10:17:56 +02:00
Miran
8f198db2ca
fixes #10952 , UNC paths ( #11260 )
2019-05-16 21:06:04 +02:00
Andreas Rumpf
e26545797e
fixes #7816 ( #11261 )
2019-05-15 21:12:07 +02:00
Matt Haggard
8180d443b9
Allow for locale-based parsing/formatting of dates ( #11170 )
...
* Allow for locale-based parsing/formatting of dates
* Updates based on review feedback of PR 11170
DateTimeLocale arrays are now indexed by Month and WeekDay enums.
More sane date used for testing.
Documentation newline.
Case change of DefaultLocale (and make it public)
* Add changelog entry for DateTimeLocale addition to times module
* Use pattern symbols for DateTimeLocale attribute names
2019-05-08 13:48:04 +02:00
Araq
a517a9985b
fixes another regression; the behaviour of 'array' formatting was changed
2019-04-15 08:20:28 +02:00
Araq
59ccaa43c7
fixes #11012
2019-04-15 08:20:28 +02:00
Miran
1494d88fa2
rst: parse brackets individually, fixes #10475 ( #10997 )
2019-04-10 15:55:57 +02:00
Arne Döring
3a5a0f6d46
Strformat symbol binding ( #10927 )
2019-04-05 15:27:04 +02:00
Andreas Rumpf
f8e720fda9
fixes json.nim regression
2019-03-29 08:01:59 +01:00
Tomohiro
cd3a58d7b0
bitops: add reverseBits and test ( #10835 )
2019-03-13 15:53:40 +01:00
Arne Döring
1102b8ac6e
StringStream and parseJson, parseCfg, parseSql et al for the vm ( #10746 )
2019-02-28 22:57:57 +01:00
Federico Ceratto
28a83a8388
Handle IPv6 in bindAddr #7633
...
Add test
2019-02-23 13:06:26 +00:00
Oscar Nihlgård
1a771a8248
Replace the duration conversion procs with new improved ones ( #10710 )
2019-02-19 19:12:44 +01:00
Arne Döring
28394153ab
32 bit fixes ( #10608 )
2019-02-13 23:30:14 +01:00
Oscar Nihlgård
bfb2ad5078
New implementation of times.between ( #10523 )
...
* Refactor ttimes
* New implementation of times.between
* Deprecate times.toTimeInterval
2019-02-06 20:13:29 +01:00
Arne Döring
824f39b32e
Vm bitops fixes ( #10520 )
2019-02-05 09:31:37 +01:00
narimiran
f0be575ed1
move tests from tospaths to tos, fixes #9671
...
Also, change some of `echo`s to `doAssert`.
2019-01-23 22:04:00 +01:00
Ico Doornekamp
0d480bfe22
Added basic bit manipulation procs to bitops ( #10338 )
2019-01-23 09:16:14 +01:00
Federico Ceratto
095eaacf21
Fix spelling errors ( #10379 )
2019-01-19 16:01:27 +01:00
Timothee Cour
b8454327c5
json: support tuple ( #10010 )
2019-01-16 10:16:14 +01:00
Arne Döring
b78af990b8
Fixes #10065 ( #10260 )
...
CountTable now returns 0 instead of 'key not found' for get requests.
2019-01-14 17:16:17 +01:00
Araq
d69a7842fa
fixes #7878
2019-01-14 12:36:34 +01:00
Araq
796432ff94
make tests more robust; tests should be deterministic, no randomize() calls in tests
2019-01-13 13:54:44 +01:00
Timothee Cour
9af85fb69f
fixes #10273 execShellCmd now returns nonzero when child killed with signal + other fixes ( #10274 )
...
* s/exitStatus(...)/exitStatusLikeShell(...)/
* fix #10273 execShellCmd now returns nonzero when child exits with signal
* test case for #10249 and explanation for the bug
* fix test failure
* add tests/nim.cfg
2019-01-13 09:00:39 +01:00
alaviss
6737634d88
os.execShellCmd: fixes #10231 ( #10232 )
...
Darwin has long deprecated the wait union, but their macros still assume
it unless you define _POSIX_C_SOURCE. This trips up C++ compilers.
This commit duplicates the behavior of WEXITSTATUS when _POSIX_C_SOURCE
is defined.
2019-01-08 12:41:15 +01:00
Federico Ceratto
2fa35126b0
Fix getAddrInfo, add IPPROTO_ICMPV6 Closes #10198
2019-01-06 20:23:44 +00:00