Miran
95504caa31
make some tests faster ( #9413 )
...
* remove duplicated slow test
* smaller `convex hull`
* smaller sleep
* faster `trtree`
* smaller sleep in `tfuturestream`
2018-10-17 19:46:42 +02:00
Araq
81e33b9d87
make thavlak and tmarkerproc_regression tests take fewer iterations in order to speedup the CIs
2018-10-17 13:20:45 +02:00
Araq
bd9d5787f0
nimpretty: fixes #9384
2018-10-17 13:07:29 +02:00
technicallyagd
88adf77569
Elaborate on source code filter usage in the documentation. ( #9407 )
...
* Elaborate on source code filter usage.
Also gives it an abbreviation, SCF.
* Fix the code block formatting
* Trim off the unintended usage with import.
2018-10-17 12:51:51 +02:00
Yuriy Glukhov
dc72cf7564
No setjump in GC for emscripten/wasm ( #9386 )
2018-10-17 00:46:13 +02:00
PMunch
db95fad6fa
Fixes #9364 and add moduleDescription to jsondoc ( #9396 )
...
This fixes `jsondoc0` so that it has comments in the output as described
by the documentation. It also fixes `jsondoc`/`jsondoc2` as it stored
it's output in a file with an html extension. Along with this it also
adds a new field `moduleDescription` to `jsondoc`/`jsondoc2` which
contains the module description.
2018-10-17 00:34:47 +02:00
Miran
e8cf289bee
improve error message, closes #2361 ( #9387 )
...
* improve error message
* use single % operation
2018-10-17 00:18:51 +02:00
Federico Ceratto
afc453beff
Update example ( #9395 )
2018-10-17 00:17:37 +02:00
Kaushal Modi
3e9f506923
Update config.nims search path in docs ( #9388 )
...
Related: https://github.com/nim-lang/Nim/pull/8682
Also mention the "nim help" command to list all available tasks.
2018-10-17 00:17:10 +02:00
Oscar Nihlgård
163e9de3c2
Unicode escape in string literals ( #9390 )
2018-10-17 00:14:22 +02:00
Andreas Rumpf
0d48bafcf0
fixes a regression about indexing into UncheckedArray
2018-10-16 20:09:12 +02:00
Andreas Rumpf
b340f677eb
fixes #9244
2018-10-16 20:09:12 +02:00
eqperes
afd9d8dd8d
Some documentation added to strutils ( #9379 )
...
* wip documentation strutils
* some runnableExamples in strutils
* assert -> doAssert
* corrected doc for abbrev; some more runnable examples
* runnableExamples for join
* fix c&p error
* corrections
2018-10-16 17:30:38 +02:00
Andreas Rumpf
480d228603
nimpretty: added an new simple test
2018-10-16 17:25:12 +02:00
Andreas Rumpf
778e4d1775
nimpretty: fixes #9144
2018-10-16 17:21:41 +02:00
Andreas Rumpf
f3c0703b7d
nimpretty: add #!nimpretty on/off directives
2018-10-16 16:55:04 +02:00
Andreas Rumpf
ed38079b9b
nimpretty: fixes #8626
2018-10-16 16:55:04 +02:00
LemonBoy
72cd3b7914
Fix repr() for UncheckedArray ( #9385 )
2018-10-16 14:27:42 +02:00
Andreas Rumpf
89ba0f8592
nimpretty: render r-strings properly, fixes #9236
2018-10-16 13:33:14 +02:00
Miran
749dbce4c6
Merge tests into a larger file (part 5 of ∞) ( #9368 )
...
* merge magics
* merge metatype tests
* merge method tests
* merge objects tests
* change `import future` to `import sugar`
Nim in Action tests are left with `import future`, to ensure compatibility.
* merge overload tests
* merge proc tests
* merge procvar tests
* merge range tests
* merge seq tests
* merge sets tests
* remove wrong assert from `tsets3`
* fix `jsTests`
* better fix
2018-10-16 10:50:10 +02:00
skilchen
f04c93b5dd
math.round is not needed in strutils ( #9383 )
2018-10-16 09:19:53 +02:00
Araq
0c04da6f26
Merge branch 'devel' of github.com:nim-lang/Nim into devel
2018-10-15 12:20:52 +02:00
Araq
bf01d7136e
Merge branch 'Fixes-7845' of https://github.com/cooldome/Nim into cooldome-Fixes-7845
2018-10-15 11:50:12 +02:00
Araq
8252c65cf2
system.nim deprecate 'getRefcount'; refs #2839 , refs #3713
2018-10-15 10:54:20 +02:00
Araq
37986d0ba8
ospaths docs: add 'basename' to theindex
2018-10-15 10:51:47 +02:00
Araq
f8e805a614
fixes #2760
2018-10-15 10:43:56 +02:00
Araq
fe091997aa
system.nim: fixes typo
2018-10-15 02:38:04 +02:00
Timothee Cour
3bef851143
fix #8225 os.isHidden was buggy on posix ( #8315 )
...
* fix #8225 isHidden was broken on posix
* scope rest of tos.nim under blocks to avoid variable scope bugs
2018-10-15 00:22:34 +02:00
Andreas Rumpf
b39302b0d2
DFA: implement exception handling properly
2018-10-14 17:36:55 +02:00
Miran
a30ba8cc37
merge macros tests ( #9367 )
2018-10-14 17:08:42 +02:00
Andreas Rumpf
8955470644
fixes #9306 properly, fixes #9306
2018-10-14 11:19:51 +02:00
Federico Ceratto
b62328cb76
Add strip() example ( #8002 )
2018-10-14 11:05:28 +02:00
Andreas Rumpf
8960efa340
unicode: added strip, align, alignLeft, repeat procs; refs #6301
2018-10-14 11:00:22 +02:00
Andreas Rumpf
77a8c6ffd8
unicode: add split procs; refs #6301
2018-10-14 10:47:54 +02:00
Andreas Rumpf
152c7d99c3
struils: don't use the deprecated accumulateResult
2018-10-14 10:28:50 +02:00
Andreas Rumpf
7656925140
added new editdistance stdlib module, deprecated strutils.editDistance, refs #6301
2018-10-14 10:26:45 +02:00
Andreas Rumpf
7f81519f41
strutils/unicode: deprecate isLower and friends operating on complete strings; fixes #7963 properly
2018-10-14 09:48:54 +02:00
LemonBoy
4808ef72db
[WIP] Early evaluation of mIs ( #8723 )
...
* Early evaluation of mIs
The `evalIs` implementation was just a broken copy of `isOpImpl` so
let's just avoid it alltogether: `mIs` nodes are either resolved during
the semantic phase or bust.
* Remove dead code and tidy it up
2018-10-14 08:53:41 +02:00
Miran
9f8b93641e
Merge tests into a larger file (part 3 of ∞: generics) ( #9347 )
...
* merge generics issues tests
* merge tgeneric
* merge test with local imports
* merge tcan tests
* merge matcher tests
* more issue tests merged
* one more tcan test
* merge various small tests into one file
* add a test for #3717
2018-10-14 08:50:39 +02:00
Vindaar
afd5abdfc2
add issue #5707 as test case ( #9361 )
2018-10-14 08:44:57 +02:00
Josh Goebel
38454c6951
Fix type in docs ( #9362 )
2018-10-14 08:44:36 +02:00
Timothee Cour
eb946f37a7
fixes #8671 ; show helpful msg (lookup symbol, eg iterator) on 'attempting to call undeclared routine' error ( #8786 )
2018-10-14 01:16:04 +02:00
Araq
8232bd04f9
sizeof(UncheckedArray) should be invalid; fixed the formating of sizealignoffsetimpl.nim to make it bearable
2018-10-14 00:58:43 +02:00
Timothee Cour
745f1642d6
implement sizeof and alignof operator (manually squashed #5664 ) ( #9356 )
2018-10-14 00:52:28 +02:00
Timothee Cour
3e2d8c1c53
correctly render AST in doAssert/assert condition: fixes #8518 ; refs #9301 ( #9332 )
...
* fixes #8518 ; refs #9301 ; correctly render AST in doAssert condition
2018-10-14 00:17:10 +02:00
LemonBoy
166720bdf9
Make sure the annotation for || is avail. at CT ( #9354 )
...
Closes #9353
2018-10-14 00:00:21 +02:00
Miran
d570dea480
put several issues in tests ( #9352 )
...
* put several issues in tests
* remove wrong test
2018-10-13 20:17:59 +02:00
Federico Ceratto
e435dbd35e
Update makefile and buildsh templates for riscv64 ( #9351 )
2018-10-13 17:18:06 +02:00
Timothee Cour
e4c76f8a2a
add strutils.stripLineEnd ( #9346 )
2018-10-13 14:59:56 +02:00
Miran
3c9fcc4c30
Merge tests into a larger file (part 2 of ∞) ( #9335 )
...
* merge controlflow tests
* merge distinct tests
* merge enum tests
* merge fields tests
* merge implicit tests
* merge iter issues tests
2018-10-13 14:58:31 +02:00