summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Improve the ropes module (#17145)konsumlamm2021-02-221-54/+83
| | | | | | | | | | | | | | * Improve ropes module Improve wording Update runnableExamples Add index bound check for `[]` Minor format changes * Update tests/stdlib/tropes.nim Run on C & JS target Test in VM Add tests for `[]`
* fix #15215 (#17142)rockcavera2021-02-221-0/+22
| | | | | | | | | | | | | | | | * fix 15215 * fix test * end line * Update tests/stdlib/tnetconnect.nim Co-authored-by: flywind <xzsflywind@gmail.com> * Update lib/pure/net.nim Co-authored-by: flywind <xzsflywind@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* when statements branches exit early (#17143)Saem Ghani2021-02-222-0/+71
| | | | | When statement branches exit early outside of nimvm. In nimvm it seems that all sides of the branches must be evaluated as the code gen happens at a later stage, this remains intact.
* [JS + docs] improve std/monotimes module (#17103)flywind2021-02-221-1/+5
|
* testament: support disabled:osx as alias to disabled:macosx (#17124)Timothee Cour2021-02-222-2/+2
|
* make rst.nim use object variant (#17138)Andrey Makarov2021-02-221-0/+5
| | | | | | | * make rst.nim use object variant * add workaround * fix mistake
* fix #17118 (#17119) [backport:1.2]flywind2021-02-221-18/+20
| | | | | * fix js unsigned integer * Use `std` prefix for standard library modules * fix #17118
* make copySign for js consistent with other backends (#16609)Timothee Cour2021-02-222-29/+18
| | | | | | * make copySign work more robustly in js * improve tests * improve tests/vm/tcastint.nim
* remove unnecessary when statement (#17135)flywind2021-02-211-1/+10
|
* move prelude so that `include std/prelude` also works (#17110)Timothee Cour2021-02-201-0/+14
| | | | | * move prelude so that `include std/prelude` also works * add test
* Improve the strformat module (#17106)konsumlamm2021-02-201-512/+498
| | | | | | | | | | | | | | | | | | | | | | * Improve the strformat module Improve documentation Use runnableExamples * Fix overflow error for low(int64) Add test * Use assert in runnableExamples * Improve tstrformat Put tests in proc & test VM Put tests in blocks Add c, js targets * Use doAssert in tests * Disable JS & VM tests
* enable bsd for tsetutils; improve setutils API (#17098)Timothee Cour2021-02-201-2/+4
|
* stricter checks for RST headlines (#17089)Andrey Makarov2021-02-201-4/+20
|
* uri: document removeDotSegments, add tests, show failure modes (#17064)Timothee Cour2021-02-201-8/+1
| | | | * uri: document removeDotSegments, add tests, show failure modes * address comments
* Ref #12700 add testcase (#17096)flywind2021-02-191-1/+9
| | | | | | | * fix js unsigned integer * better * ref #12700 add testcase
* fixes #17085 [backport:1.2] (#17101)Andreas Rumpf2021-02-191-0/+22
|
* close #13859; add testcase (#17099)flywind2021-02-191-0/+19
| | | | | | | * fix js unsigned integer * better * close #13859; add testcase
* system/excpt: let the OS handle termination on signal (#16712)alaviss2021-02-191-0/+20
|
* Add setutils.complement, setutils.fullSet (#17066)Jason Beetham2021-02-181-7/+27
|
* fix stringify unsigned integer in JS and JS VM (#17086)flywind2021-02-181-0/+28
| | | | | * fix js unsigned integer * better
* [nodejs backend] paramStr, paramCount (#17082)flywind2021-02-181-0/+11
|
* fix #17076 (#17081)flywind2021-02-181-3/+25
|
* add -d:nimStrictMode in CI to keep code from regressing; fixes ↵Timothee Cour2021-02-171-0/+2
| | | | ConvFromXtoItselfNotNeeded, UnusedImport notes (#16764)
* fix math.frexp function signature (#16725)flywind2021-02-171-3/+10
|
* ARC Analysis in one pass v3 (#17068)Clyybber2021-02-173-3/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Analyse last reads all at once * Integrate firstWrite analysis * Small cleanup * Use sets instead of seqs * Remove instrTargets * Reap the benefits * Implement error diagnostics * Operate on DFA index for lastRead analysis * Use mgetOrPut * Cache alias results This improves performance by a lot, since many CFG locations map to a single PNode * Improve performance * Improve performance * Cleanup * Fix #17025 * Grammar * Expand testcase
* make system random work in VM (#17059)flywind2021-02-171-6/+29
| | | | * make system random work in VM
* fixes #17033 [backport:1.4] (#17061)Andreas Rumpf2021-02-171-2/+84
| | | | | | | * fixes #17033 [backport:1.4] * make test robust against stdlib gensym things * cleanup assertions.nim to make topt_no_cursor easier to get right
* remove all uses of condsyms symbols defined prior to bootstrap nim 0.20.0 ↵Timothee Cour2021-02-171-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#16918) * nimNoArrayToCstringConversion deadcode * nimbabel deadcode * nimHasalignOf deadcode * nimvarargstyped deadcode * nimhygiene deadcode * nimNewTypedesc deadcode * nimlocks deadcode * nimHasCppDefine deadcode * nimHasRunnableExamples deadcode * nimHasNilChecks deadcode * nimSymKind deadcode * minor macros refactoring * nimVmEqIdent deadcode * nimNoNil deadcode * nimNoZeroTerminator deadcode * nimHasSymOwnerInMacro deadcode * nimVmExportFixed deadcode * nimNewRuntime deadcode * nimAshr deadcode * nimUncheckedArrayTyp deadcode * nimHasTypeof deadcode * nimErrorProcCanHaveBody deadcode * nimHasHotCodeReloading deadcode * nimHasSignatureHashInMacro deadcode * nimHasDefault deadcode * nimMacrosSizealignof deadcode
* don't introduce 'dispose', use '=dispose', fixes #17003 [backport:1.4] (#17062)Andreas Rumpf2021-02-171-1/+1
|
* Fix bug in removeDotSegments: added test (#17050)Benoit Favre2021-02-161-0/+1
| | | | | * Fix bug in removeDotSegments when path ends with dot * Add test for trailing period bug in uri
* Improve documentation for bitops (#16961)konsumlamm2021-02-151-336/+173
| | | | | | | | | | * Improve documentation for bitops Use func Use let in runnableExamples * Remove unnecessary tests Fix #7587
* Revert "ARC: Analysis in one pass v2 (#17000)" (#17046)Clyybber2021-02-152-29/+3
| | | This reverts commit 216be4060a853b3425501318537d598c4842eefc.
* JS: fix div uint64 no truncation (#16899)flywind2021-02-151-0/+19
|
* RST: implement footnotes and citations (#16960)Andrey Makarov2021-02-151-0/+208
| | | | | | | | | * RST: implement footnotes and citations * manual fixup of nimdoc.out.css * remove unused code * shorter printing code * Update lib/packages/docutils/rst.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Improve the heapqueue module (#17034)konsumlamm2021-02-151-34/+83
| | | | | | Improve documentation Optimize toHeapQueue Rename siftup and siftdown Add tests for the heap property
* array literals uses typed arrays; fix a jsgen bug (#16850)flywind2021-02-153-15/+32
| | | | | | | * array litterals uses typed arrays * Update compiler/jsgen.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fixed dot operator recursive loop & macro suggest (#16922)Saem Ghani2021-02-152-8/+25
| | | | | | | | | | | | | | | | | | * basic stability improvements; refs nimsuggest * fixed dot operator recursive loop & macro suggest * hacky fix for run away dot operator sem check Committing this mostly to make the issue more clear. Perhaps get better feedback. * semExprWithType seems like a better place to check * fixed error messages const case expressions * Clean-up test * stopped the dot operator madness No longer get infinite recursion when seming broken code with a dot operator macro like in jsffi. Co-authored-by: Araq <rumpf_a@web.de>
* fix #16978 unittest js foreign exception (#16998)Timothee Cour2021-02-131-0/+16
| | | | * fix #16978 unittest js foreign exception
* followup #17001: improve coverage for tests/openarray/topenarray.nim (#17006)Timothee Cour2021-02-131-3/+17
| | | | * followup #17001: improve coverage for tests/openarray/topenarray.nim
* Make parseopt available on all backends (#17009)hlaaftana2021-02-132-3/+7
| | | | | | | | | * Make parseopt available on all backends * fix spaces * fix getopt and update prelude * no crazy unnecessary version checks, use doAssert
* compilesettings: add libpath (#16997)Timothee Cour2021-02-121-13/+10
| | | | | | | | | | | * compilesettings: add libpath * add test * changelog * fixup Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Improve math module (#17019)konsumlamm2021-02-122-311/+358
| | | | | | | | | | | | | | | | | | | | | | | | | * Improve documentation for math Support empty input for cumsummed Use runnableExamples Move some examples to tests Add more tests * Update tests/stdlib/tmath.nim Move some tests to trandom.nim Move tests into main template where possible Add test for #17017 * Add more tests for gamma & lgamma Remove gamma(-1.0) example Small fixes/changes * Move more tests into template main() * Fix typos * Add edge case examples for copySign
* typeToString: type float => typedesc[float] (#17011)Timothee Cour2021-02-1211-17/+17
| | | | | | | * typeToString: type float => typedesc[float] * fixup * fix tests
* parse RST headings when EOF follows them (#17014)Andrey Makarov2021-02-121-0/+7
|
* add system random to stdlib: std/sysrand (#16459)flywind2021-02-111-0/+13
|
* [backport:1.4] JS cstring null fixes (#16979)hlaaftana2021-02-112-2/+33
| | | | | * [backport:1.4] JS cstring null fixes * fix JS move string * make it look cleaner
* Improve documentation for assertions (#16988)konsumlamm2021-02-111-3/+3
| | | | | | | | | | | * Improve documentation for assertions * Apply suggestions Fix tests/assert/tassert_c.nim * Use runnableExamples * Move runnableExamples to module scope
* [JS] Ref #15952 make toOpenArray works better (#17001)flywind2021-02-101-0/+13
| | | | | * ref 15952 toOpenArray works in JS * fix
* ARC: Analysis in one pass v2 (#17000)Clyybber2021-02-102-3/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Analyse last reads all at once * Integrate firstWrite analysis * Small cleanup * Use sets instead of seqs * Remove instrTargets * Reap the benefits * Implement error diagnostics * Operate on DFA index for lastRead analysis * Use mgetOrPut * Cache alias results This improves performance by a lot, since many CFG locations map to a single PNode * Improve performance * Improve performance * Cleanup
* Revert "ARC Analysis in one pass (#16849)" (#16984)Clyybber2021-02-092-29/+3
| | | This reverts commit ab740cb5b9bfbacece26956fa2444763a790ccd1.