Commit Graph

18301 Commits

Author SHA1 Message Date
Andreas Rumpf
af7f7726fe ORC: make the adaptive strategy the default in order to fight memory consumption (#16250)
* ORC: make the adaptive strategy the default in order to fight memory consumption

* added missing test case
2020-12-05 23:15:17 +01:00
flywind
70d4df0516 bring back argparse (#16242) 2020-12-05 13:05:16 -08:00
Clyybber
d7f244180e Retry commands in testament again (#16262) 2020-12-05 18:41:08 +01:00
Andreas Rumpf
8178388a78 fixes #16249 [backport:1.4] (#16251) 2020-12-05 00:36:06 +01:00
Andreas Rumpf
edce5897a5 fixes #16214 [backport] (#16252) 2020-12-04 17:47:41 +01:00
Andrey Makarov
6877e0c8a3 RST tables: fix latex col number; allow less than three of = (#16040) 2020-12-04 08:50:17 +01:00
flywind
e4e5a0c65a cleanup docs and tests (#16235)
* js module also uses runnableExamples

* cleanup docs and tests
2020-12-03 22:59:17 +01:00
Antonis Geralis
808ab7eae2 add collect with infered init, refs #16078 fixes #14332 (#16089)
* changelog
* add testcase, fixes #14332
2020-12-03 20:32:18 +01:00
Miran
2220aaeaef add support for parsing chars in scanf macro (#16240) 2020-12-03 17:34:30 +01:00
Alf-André Walla
545c406cbe Add 32-bit RISC-V support (#16231) 2020-12-03 17:33:42 +01:00
Andrey Makarov
e223a05123 minor fix to Posix part of walkDir (#16234)
* change break->continue and rewrite one-yield-style

* use case statement for clarity

* Tiny nit

Co-authored-by: Clyybber <darkmine956@gmail.com>
2020-12-03 17:09:54 +01:00
Timothee Cour
c731f7ab14 fixes #15939, fixes #15464, fixes #16169, fixes #16226 VM now supports addr(mystring[ind]) (index + index assignment) (#15987)
* fix #15939, fix #15464 VM now supports `addr(mystring[ind])` (index + index assignment), var char return etc
* cleanups
* cstring tests
* add test for bug #15464
* improve test coverage
2020-12-03 16:55:43 +01:00
flywind
b1554cfeb5 better setops docs (#16236)
* js module also uses runnableExamples

* better setops docs

* Update lib/system/setops.nim

* better

* Update lib/system/setops.nim

* Update lib/system/setops.nim

* better

* better
2020-12-03 14:47:44 +01:00
Aditya Siram
23447ffdce Fixes #16219, hasArgOfName ignoring argument sets. (#16233)
* Fixes #16219, `hasArgOfName` ignoring argument sets.

* Fix test and simplify ident traversal.

* Moved test into a block and removed some boilerplate.

* Fix some argument formatting.

* use ..<

* Change the preceding line too

Co-authored-by: Clyybber <darkmine956@gmail.com>
2020-12-03 13:40:28 +01:00
flywind
849bc36eda merge two parsecfg tests into one (#16237)
* try to fix #16206
* merge two parsecfg tests into one
* Revert "fix"

This reverts commit 668bdec2c4.

* Revert "try to fix #16206"

This reverts commit c399cc2153.
2020-12-03 12:15:36 +01:00
ee7
629b22e3d5 styleCheck: Fix error for sugar and std/with (#16176)
With this commit, we no longer see an error if we pass
`--styleCheck:error` when compiling a file that contains `import sugar`
or `import std/with`.

The problem was that those modules (and only those modules) import
`std/private/underscored_calls`, which contained a styleCheck issue:
its spelling of `nnkArgList` didn't match the `nnkArglist` spelling in
`macros.nim`.

This commit fixes the issue by renaming `nnkArgList` to `nnkArglist`
repo-wide. The other way around would be a breaking change for code that
used `nnkArglist` and `--styleCheck:error`.

Fixes: #16174
2020-12-02 20:48:16 +01:00
flywind
139075e965 move decode_helpers to std/private (#16209) 2020-12-02 10:30:55 -08:00
Clyybber
af984a3db9 Fix typo and improve grammar for clamps note 2020-12-02 17:18:51 +01:00
flywind
d2bf0fb43c small style changes and clarify clamp (#16228)
* [docs minor]better comparisons docs

* switch from PRNG to random module

* apply suggestions

* not compile

* Revert "switch from PRNG to random module"

This reverts commit 83b4d8946d.

* small style changes and clarify clamp
2020-12-02 17:06:23 +01:00
flywind
148d614dff js module also uses runnableExamples (#16229) 2020-12-02 16:24:59 +01:00
Miran
c0b76ef3cb fix #16164, render doc comments (#16230)
* fix #16164, render doc comments

* add a test
2020-12-02 15:36:08 +01:00
flywind
e875f27ee6 [docs minor] better comparisons docs (#16201) 2020-12-02 09:34:34 +01:00
ihlec
5c23ba7545 fixed article duplication typos (#16216) 2020-12-02 09:15:29 +01:00
Timothee Cour
84f2ad3068 add test for --eval; fix a minor bug (#16224) 2020-12-01 21:09:08 -08:00
flywind
9fa5826d62 minor typo (#16225) 2020-12-02 10:23:38 +08:00
treeform
cabfc7ec5c Don't add content-length header on GET request when there is no body. (#16196)
* Don't add content-length header on GET request when there is no body.

* Add space between the not and the (.

* Take Dom's suggestion.
2020-12-01 23:29:15 +01:00
Andreas Rumpf
ae9fe2b2f9 ORC: API extensions (#16126)
* ORC: API extensions
* ORC: exploit a common special case
2020-12-01 22:34:52 +01:00
Timothee Cour
e0b4f05053 nimout now consistently uses nimoutCheck (#16189) 2020-12-01 21:12:40 +01:00
flywind
62eb1312a0 minor improve the docs of parsecfg (#16208) 2020-12-01 21:06:37 +01:00
Timothee Cour
fd98705680 error instead of echo when testament category is empty; fix realtimeGC (#16162) 2020-12-01 20:34:53 +01:00
flywind
c65f95417a better addInt (#16160)
* better addint
* Update lib/system/strmantle.nim

Co-authored-by: Juan Carlos <juancarlospaco@gmail.com>
2020-12-01 20:19:39 +01:00
hlaaftana
1d1b3f79fd fix broken => for typed procs with pragmas (#16190)
* fix broken => for typed procs with pragmas

* add more sugar tests

* add ending quote
2020-12-01 12:01:36 +01:00
Andreas Rumpf
2e4b6b94e6 Revert "fix #16185 (#16195)" (#16197)
This reverts commit bb4b27a2ca.
2020-11-30 23:36:38 +01:00
cooldome
bb4b27a2ca fix #16185 (#16195)
* fix #16185

* fix test

* fix comment

* fix comment

* better approach
2020-11-30 18:45:37 +01:00
Bung
5a43a20f53 toXXAscii use xor op, saving 30%~50% time (#16193)
* toXXAscii use xor op, saving 30%~50% time

* Update lib/pure/strutils.nim

Co-authored-by: hlaaftana <10591326+hlaaftana@users.noreply.github.com>

* Update lib/pure/strutils.nim

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
Co-authored-by: hlaaftana <10591326+hlaaftana@users.noreply.github.com>
2020-11-30 18:24:12 +01:00
flywind
735c06d7f1 small runnableExamples changes (#16181) 2020-11-30 10:18:47 +01:00
narimiran
dd5405cbcf disable testing of argparse package until it is fixed 2020-11-30 08:54:49 +01:00
flywind
358963193f cleanup old codes (#16173) 2020-11-30 09:41:50 +08:00
Timothee Cour
31a8cf16bb testament spec: remove errmsg alias of errormsg (#16188) 2020-11-29 17:32:34 -08:00
Timothee Cour
6114df3c24 testament: error instead of silently overwrite a spec (#16166) 2020-11-29 10:42:50 -08:00
Timothee Cour
d29eddf92a experimental/diff: move isMainModule block to tests/stdlib/tdiff.nim (#16172) 2020-11-28 11:59:08 -08:00
Timothee Cour
1d786c0a54 fix #14242 testament r tests/js/foo now works; testament now honors --targets (#16163)
* fix #14242 `testament r tests/js/foo` now works; testament now honors --targets

* fix shouldfail
2020-11-28 19:33:36 +01:00
Timothee Cour
b809562c7c make megatest consistent with unjoined tests wrt newlines, honor newlines in output spec (#16151)
* fix megatest newlines
* still allow missing trailing newline for now but in a more strict way than before
2020-11-28 09:09:31 +01:00
Antonis Geralis
157e7820f1 Add package manu to tested packages (#16121)
* Add package manu to tested packages

* Bump
2020-11-28 00:05:19 +01:00
flywind
c555525227 fix #13115 (#15930)
* fix #13115

* fix testament
2020-11-27 21:04:36 +01:00
flywind
bc1db0d6f1 move rest of tests to testament (#16140)
* move rest of tests to testament
* Update tests/stdlib/tsums.nim
2020-11-27 20:47:49 +01:00
Andreas Rumpf
c9a10bb9e4 fixes #16154; underlying system.add for seq is the real cause; will be addressed in a follow-up PR (#16161) 2020-11-27 15:26:57 +01:00
flywind
3510216c8a add testcase (#16156) 2020-11-27 02:57:16 -08:00
flywind
6b77e16c6f tunidecode minor improvement (#16157) 2020-11-27 12:41:22 +08:00
flywind
c0215d8d0d clean up changelog (#16155)
* fix rope index

* add testcase

* fix ropes format

* add `**` to jsffi

* add testcase

* changelog

* clean up changelog

Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
2020-11-27 10:53:30 +08:00