summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* fix #16949 --app:staticlib works on openbsd; --app:staticlib tested in CI ↵Timothee Cour2021-02-081-0/+27
| | | | (#16950)
* use typeof instead type (#16962)flywind2021-02-089-39/+39
|
* close #16921 (#16951)flywind2021-02-061-0/+3
|
* stdlib/os: handle symlinks in copy/move functions (#16709)Roman Inflianskas2021-02-042-0/+134
| | | | | | | | | | | | | | | | | | | | | | | | | | * stdlib/os: handle symlinks in copy/move functions - Added optional `options` argument to `copyFile`, `copyFileToDir`, and `copyFileWithPermissions`. By default, symlinks are followed (copy files symlinks point to). - `copyDir` and `copyDirWithPermissions` copy symlinks as symlinks (instead of skipping them as it was before). - `moveFile` and `moveDir` move symlinks as symlinks (instead of skipping them sometimes as it was before). - Added optional `followSymlinks` argument to `setFilePermissions`. See also: https://github.com/nim-lang/RFCs/issues/319 Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Address comments in #16709 Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Address comments in #16709 (second iteration) Skip symlinks on Windows. Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* strictFuncs+views: add test that imports stdlib modules (#16878)ee72021-02-033-12/+198
| | | | | | | | | | | | | | | This commit attempts to improve testing of strictFuncs and views, and prevent regressions like #16873 (resolved by 0b01eddace6a). We previously only explicitly tested strictFuncs and views with a smaller number of stdlib modules, mostly in: - tests/effects/tstrict_funcs.nim - tests/views/tcan_compile_nim.nim Note that this commit leaves the `pegs` module commented out; it cannot currently be compiled with `--experimental:views` (see #16892). Note also that this commit is not sufficient to test strictFuncs and views, but it does detect a subset of problems.
* remove .github/workflows/ci_ssl.yml; instead run via trunner_thirdparty (#16221)Timothee Cour2021-02-026-237/+267
|
* Sugar tests (#16820)konsumlamm2021-02-021-118/+215
|
* Add testcase for #16897 (#16917)Clyybber2021-02-021-0/+33
|
* tests/tuples/ttuples_issues.nim: test on all backends + various improvements ↵Timothee Cour2021-02-023-110/+123
| | | | | | | (#16907) * improve tests/tuples/ttuples_issues.nim: test on all backends * address comments
* IC: bugfixes (WIP) (#16836)Andreas Rumpf2021-02-021-0/+29
| | | | | | | | * minor improvements * IC: added the required logic for compilerProcs * LazySym ftw * we need this testing logic * reimplement the old way we use for module package creation * fixes a regression; don't pick module names if you can avoid it
* `dumpToString`: improves on `sugar.dump` (#16841)Timothee Cour2021-02-021-1/+11
| | | | | | | * dumpToString * _ * fixup * changelog * address comment: removed the word "Deprecated"
* Improve doc comments (#16902)konsumlamm2021-02-021-83/+85
| | | | | Add runnableExamples Use `reduce` in `initRational` and `//` Add static tests
* 2.5x- 3x faster copyFile on osx (#16883)Timothee Cour2021-02-011-9/+14
|
* add finally as post expr block [backport:1.4] (#16896)hlaaftana2021-02-011-0/+115
|
* fix #16822 (#16884)flywind2021-02-012-2/+30
| | | | | | | | | * see whether it breaks * fix #16884 * correct * fix #14574
* critbits: fix error from strictFuncs (#16877)ee72021-02-011-0/+1
| | | | | | | | | Previously, compiling a file containing just `import critbits` with `nim c --experimental:strictFuncs` would produce the following error: critbits.nim(529, 6) Error: 'toCritBitTree' can have side effects This was introduced by 2aed4186989e (#16564). Fixes: #16873
* distinctBase now is identity instead of error for non distinct types (#16891)Timothee Cour2021-02-011-0/+2
|
* Fix #12595 (#16874)konsumlamm2021-01-311-2/+8
|
* add lost functions (#16843)flywind2021-01-291-0/+2
|
* fix floats slice (#16853)flywind2021-01-291-3/+3
| | | | | | | | | | | | | | | | | | | | | | | * see whether it breaks * fix * fix * minor * fix * add enum * use Ordinal types * fix tests * fix * another style * fix remainning cases
* fix #16815 round(x,places) works again in vm (#16825)Timothee Cour2021-01-281-28/+30
| | | | | | | * fix #16815 round+places works again in vm * improve tests; fix for linux 32bit * fix test for windows
* fix #16752: threadvar now works with importcpp types; osx now uses native ↵Timothee Cour2021-01-274-0/+147
| | | | | | | | | | | TLS (`--tlsEmulation:off`), which can be orders of magnitude faster (#16750) * osx now uses native TLS, which can be orders of magnitude faster * add {.cppNonPod.} * improve test * changelog, docs, disable part of windows test
* Improve documentation for the mersenne module (#16824)konsumlamm2021-01-271-0/+11
| | | | | | | * Improve documentation for mersenne Add tests for mersenne * Add link to Wikipedia article
* Moved json enum index test to the proper file (#16826)Jason Beetham2021-01-252-11/+12
|
* added enum indexed array support to json (#16807)Jason Beetham2021-01-261-0/+11
| | | | | | | * added enum indexed array support to json * Added json test * Removed when statement for enum indexed arrays
* Finer analysis for array access (#16787)Clyybber2021-01-241-0/+31
| | | | | * Refine the analysis for array access * Cleanup * Add comments
* fix manual to reflect reality for .nosideeffect (#16781)Timothee Cour2021-01-221-0/+24
|
* Improve the marshal module (#16777)konsumlamm2021-01-221-94/+85
| | | | | | | | | | * Improve marshal Use runnableExamples Refactor tests * Readd {.inheritable.} test Apply suggestions
* addQuitProc => addExitProc (#16765)Timothee Cour2021-01-223-3/+11
|
* typetraits: make genericHead docs reflect reality; use runnableExamples ↵Timothee Cour2021-01-221-1/+6
| | | | (#16776) [backport:1.4]
* Fix SIGSEGV in httpclient response body (#16766)Daehee2021-01-221-0/+6
| | | | | | | | | * initialize httpclient response bodyStream; prevent SIGSEGV when getBody is false * Update lib/pure/httpclient.nim * Update lib/pure/httpclient.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Add testcase for #14880 (#16795)Clyybber2021-01-221-0/+10
|
* Testament small fixes (#16788)Juan Carlos2021-01-221-28/+0
| | | | | | | | | * ReSync with Devel * ReSync * Fix Deprecations, Convertion to itself, code style, etc * Fix Deprecations, Convertion to itself, code style, etc
* Add testcase for #5993 (#16789)Clyybber2021-01-221-0/+16
|
* fix #15628 (#16387)flywind2021-01-212-25/+36
| | | | | | | | | * done * Apply suggestions from code review * fixup Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* Part-to-whole optimization (#16775)Clyybber2021-01-211-1/+46
|
* close #8015: const array indexing zeroes data in object variants at runtime ↵Timothee Cour2021-01-211-0/+57
| | | | (#16782)
* fix testament regression: installed testament works again with testament r ↵Timothee Cour2021-01-201-0/+9
| | | | | | | path (#16767) * fix testament regression: installed testament works again with testament r path * fixup
* fix noDecl => nodecl (#16760)Timothee Cour2021-01-202-1/+2
| | | | | | | * fix noDecl => nodecl * address comment * disable flaky tests/stdlib/thttpclient.nim on freebsd
* Reboot of #16195 (#16746)Clyybber2021-01-202-1/+159
| | | | | | | | | | | | | | | | | | | | | | | | | * fix #16185 * fix test * fix comment * fix comment * better approach * Add more tests and move sameLocation to injectdestructors * Better and more strict sameLocation * Small cleanup and preliminary spec clarification * Fix * Fix doc * Expand test Co-authored-by: Andrey R (cooldome) <ariabushenko@gmail.com>
* `--hintAsError` (#16763)Timothee Cour2021-01-201-0/+35
| | | | | | | * --hintAsError * add test, changelog * condsyms
* jsonutils.jsonTo: support opt (#16739)Timothee Cour2021-01-171-0/+3
|
* js: improve tests + some docs (#16727)Timothee Cour2021-01-163-262/+173
| | | | | | | | | | | * js: improve tests * _ * _ * _ * fixup
* close #10735 add testcase (#16690)flywind2021-01-151-0/+41
|
* Deprecate TaintedString (#15423)Juan Carlos2021-01-157-17/+17
| | | | Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
* Fix 16722 (#16730)cooldome2021-01-151-1/+43
| | | | | | | * fix #16722 * fix spacing * spacing
* followup for #16717: minimized example + improved comment (#16721)Timothee Cour2021-01-151-32/+44
|
* Add js BigInts (#16409)Juan Carlos2021-01-141-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | | * Add BigInts * Renames tos plurals * Improve Stringifications * Update changelog.md Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> * RunnableExamplerize * discard the discardable pragma * Several improvements from peer reviews, more docs * More doc, more test * More doc, more test * Better error message 'Error: usage of low is an {.error.} defined at jsbigints.nim' instead of just 'type mismatch JsBigInt' * is an overload, rename * proc to scare kids away * Update lib/js/jsbigints.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * https://github.com/nim-lang/Nim/pull/16409#discussion_r554365041 Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* Transfer-Encoding:chunked tests (#16678)vabresto2021-01-141-0/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add tests and fix extra newlines in body * Fixes per comments * Slight rephrase per comments * Improvements per comments * Add getSocket to reduce test flakiness per comment * Remove unused lines from header * Add doc comment to getSocket per comment * Apply witchcraft to replace `discard Future` * Return HTTP 400 on bad encoding in request * Fix runnable example for getSocket * Fix import to fix runnable examples * Even more imports for the example * Better self documenting runnable example * Add missing import * Import from module with correct signature * Resolve port type mismatch
* fix #16706 (#16717) [backport:1.4]flywind2021-01-141-0/+37
|