Andrey Makarov
e843492b13
doc/rst2html: some few fixes for enumerated and bullet lists ( #16295 )
...
* fix bullet/enumarated lists with many blank lines
* fix enumerated list parsing
* fix parse failure when next line after list empty
* implement arbitrary start of enumerator
* check that enumerators are in order
* remove redundant start=x if x=1 or a
* add some doc on implemented features
* update start in rst_examples.rst
* allow upper-case letters + more docs
2020-12-14 18:10:39 +01:00
Timothee Cour
555cfd1d59
fix #16330 tshould_not_work ( #16342 )
2020-12-14 11:37:27 +01:00
Timothee Cour
4850f9b596
fix #16265 ; fix #13999 (HCR on OSX); cgen now does not line wrap string litterals ( #16329 )
...
* fix #16265 : cgen now does not line wrap string litterals which, in combination with other hacks, caused a really obscure looking bug
* fix #13999 ; nimhcr_integration.nim now works for osx
* try to make appveyor CI disappear
* disable openbsd + add diagnostic for openbsd
* enable for openbsd
* PTEMP
* re-disable openbsd
2020-12-14 11:17:24 +01:00
Timothee Cour
7e1ae35195
testament: error instead of silently ignore invalid targets; remove pointless alias target vs targets; document matrix; DRY ( #16343 )
...
* testament: error instead of silently ignore invalid targets
* s/target/targets/
* fix test; refs #16344
* address comments
* Update testament/specs.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2020-12-14 10:58:29 +01:00
Bung
5514b299eb
add testcase for #15937 ( #15933 )
...
* test for issue #15624 and PR #15915 for patch #13823
* Update thashes.nim
no need mention PR #15915 , fixed in https://github.com/nim-lang/Nim/pull/15937
* rebase to devel(issue maybe fixed), ignore ouputs
* Apply suggestions from code review
Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com >
2020-12-13 11:52:38 +08:00
Jason Beetham
5a58440ebe
Added strscans.scanTuple ( #16300 )
...
* Added since and changelog
2020-12-12 23:29:20 +01:00
Timothee Cour
b1c232aca1
improve tests for collections ( #16328 )
...
* improve tests for collections
* remove remaining code blocks in deques.nim
* improve runnableExamples
2020-12-12 09:33:29 +01:00
Timothee Cour
0b73106ccf
add math.isNaN ( #16179 )
...
* add math.isNaN
* isNaN now works with --passc:-ffast-math; tests
* Update lib/pure/math.nim
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2020-12-11 11:01:43 +01:00
Timothee Cour
bb1c962286
fix partially #13115 (now works for cpp; but still fails for js on openbsd) ( #16167 )
...
* fix partially #13115 properly (works for c,js,cpp,vm; still fails for js on openbsd)
* address comment: also test with -d:danger, -d:debug
2020-12-11 10:35:05 +01:00
flywind
73299b048f
enable tests for random ( #16297 )
2020-12-10 07:58:42 +01:00
Timothee Cour
82bb4db4b7
unittest: use defines instead of env vars ( #16165 )
...
* unittest: use defines instead of env vars
* use defines in testament
* fixup
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2020-12-10 00:57:52 +01:00
Timothee Cour
f344a70412
fix #16150 improve type mismatch errors ( #16152 )
...
* fix #16150 improve type mismatch errors
* allow -d:nimLegacyTypeMismatch
* address comment
2020-12-09 16:19:39 +01:00
ee7
87e634aab3
rationals.nim: Use func everywhere ( #16302 )
2020-12-09 16:17:50 +01:00
ee7
6f57ebae34
sequtils.nim: Use func ( #16293 )
...
* sequtils.nim: proc -> func
* sequtils.nim: proc -> func in links
* sequtils.nim: proc -> func in non-link doc comments
* test: add `sequtils` to strictFuncs test
2020-12-09 12:11:16 +01:00
ee7
140ebe6019
complex.nim: Use func everywhere ( #16294 )
2020-12-09 10:57:12 +01:00
Xabier Bello
4c533b2d92
Added Python to highlite module. ( #16286 )
...
* Added Python to highlite module.
* Added the keywords for Python
* Refactored the 'pythonLikeNextToken' into 'nimNextToken':
- `lang` property added to GeneralTokenizer object, is set in `getNextToken`.
- `nimNextToken` accepts `keywords` parameter, used for languages different
from Nim.
- Multiline comment available only for `langNim`.
2020-12-08 10:44:07 +01:00
ee7
2297b96238
math.nim: Use func everywhere ( #16285 )
...
* math.nim: procs with {.noSideEffect} -> funcs
* math.nim: procs without {.noSideEffect.} -> funcs
* math.nim: proc -> func in links
* math.nim: proc -> func in doc comments
* test: add `math` to strictFuncs test
2020-12-07 23:26:14 +01:00
ee7
84fea7c144
strutils.nim: Use func everywhere ( #16281 )
...
* strutils.nim: procs with {.noSideEffect.} -> func
* strutils.nim: procs without {.noSideEffect.} -> func
* strutils.nim: proc -> func for links
* strutils.nim: proc -> func in doc comments
* test: add strutils to strictFuncs test
* test: proc -> func in errmsg test
2020-12-07 17:07:12 +01:00
flywind
48d7c40553
fix #16206 ( #16207 )
...
* better docs and tests
* a bit better only clean trailing whitespace
2020-12-06 09:50:46 +01:00
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
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
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
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
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
Timothee Cour
e0b4f05053
nimout now consistently uses nimoutCheck ( #16189 )
2020-12-01 21:12:40 +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
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
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
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
70a1c42542
add ** to jsffi ( #16141 )
...
* fix rope index
* add testcase
* fix ropes format
* add `**` to jsffi
* add testcase
* changelog
Co-authored-by: Andreas Rumpf <rumpf_a@web.de >
2020-11-26 20:30:19 +01:00
Andreas Rumpf
4fdaded227
updated repr tests ( #16147 )
2020-11-26 20:00:31 +01:00
Andreas Rumpf
cf516713d0
fixes https://github.com/status-im/nimbus-eth2/issues/1549 ( #16146 )
...
* fixes https://github.com/status-im/nimbus-eth2/issues/1549 [backport:1.4]
* test fixup
2020-11-26 19:05:21 +01:00
cooldome
2f1a9eadd7
More on #16110 ( #16130 )
...
* fix #16110
* refs #16110
* fix comment
* Trigger build
* use shallowCopy for efficiency
2020-11-26 13:44:06 +00:00