summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* fix #6637 array index type depends generic (#20673)Bung2022-10-271-0/+9
|
* add test case for #500 (#20661)Bung2022-10-261-0/+8
|
* fixes #19201; fixes sink causes crash in VM (#20658)ringabout2022-10-251-1/+7
|
* closes #6213 #11777; add testcase (#20656)ringabout2022-10-251-0/+27
|
* Implement Unix file regularity check (#20448) (#20628)Andrey Makarov2022-10-252-3/+45
| | | | | * Implement Unix file regularity check * update std/dirs also
* add type check for default fields (#20652)ringabout2022-10-251-0/+22
|
* fixes #1027; disallow templates to use ambiguous identifiers (#20631)ringabout2022-10-243-0/+24
| | | | | | | | | | | | | | | | | | | | * test qualifiedLookUp in templates * check later * add testcase * add 4errormsg * Update tests/template/m1027a.nim Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com> * Update tests/template/m1027b.nim Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
* fixes #20645 (#20646)Andreas Rumpf2022-10-241-1/+11
| | | | | * fixes #20645 * better bugfix
* Added 'openArray[char]' overloads to 'std/parseutils' (#20527)Jason Beetham2022-10-241-50/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added 'openarray[char]' overloads to 'std/parseutils' * Removed redundant `start` and `last` params from slice using procs * Fixed type for parseIdent overload * fixed one by off with 'substr' * removed missed start parameters for procedures * Added 'openarray[char]' overloads to 'std/parseutils' * Removed redundant `start` and `last` params from slice using procs * Fixed type for parseIdent overload * fixed one by off with 'substr' * removed missed start parameters for procedures * Fixed VM op to work with new 'opcSlice' * Corrected captureBetween's logic to work with openarray * js sys's parsefloat logic now uses openarray Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
* fixes #19278; make `privateAccess` work with generic ref object (#20640)ringabout2022-10-242-1/+16
| | | | | * fixes #19278; make `privateAccess` work with generic ref object * fixes
* Fix tuple size check in `std/jsonutils` (#20637)Jake Leahy2022-10-241-1/+7
| | | | | | | | | | | * Add test for tuple being invalid size * Test tuple size before accessing fields * Fix formatting for import * Fix not being able to build from csources_v1 Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* borrowed procs can have a body now for documentation generation (#20617)ringabout2022-10-241-1/+17
| | | | | * borrowed procs can have a body now * fixes examples
* Fix double defer with break in closureiterators [backport] (#20630)Tanguy2022-10-241-0/+30
| | | | | | | Fix double defer with break in closureiterators Signed-off-by: Tanguy <tanguy@status.im> Signed-off-by: Tanguy <tanguy@status.im>
* Pass json options to hooks (#20638)Jake Leahy2022-10-241-0/+22
| | | | | | | | | | | * Added tests * Fix expected string * Allow hooks to take an optional parameter that is the current options * Add options to hooks for other generic types * Fix doc links
* Remove side-effects from sysFatal with panics on (#20632)Tanguy2022-10-241-0/+8
|
* closes #4678; add testcase (#20634)ringabout2022-10-241-0/+16
|
* closes #4466; add testcase (#20625)ringabout2022-10-231-0/+9
|
* enable static tests for topenarray (#20620)ringabout2022-10-231-1/+1
|
* add `std/appdirs` (#20618)ringabout2022-10-221-1/+14
|
* Unpack mSlice tupleconstr for static openarrays (#20615)Jason Beetham2022-10-222-0/+15
|
* fixes a strict case object problem that has been reported on the forum (#20614)Andreas Rumpf2022-10-211-1/+21
|
* add typesafe `std/paths`, `std/files`, `std/dirs`, `std/symlinks` (#20582)ringabout2022-10-212-0/+253
| | | | | | | | | | | | * split std/os; add typesafe std/paths * add more files, dirs, paths * add documentation * add testcase * remove tryRemoveFile * clean up * Delete test.nim * apply changes * add `add` and fixes
* fix #20152 Illegal capture of closure iterator, when should be legal (#20607)Bung2022-10-211-0/+20
|
* fix #19349 incompatible type when mixing float32 and cfloat in generics (#20551)Bung2022-10-211-0/+19
|
* fix #19426 compile error using when/elif/else and typedesc in template (#20550)Bung2022-10-211-0/+16
|
* closes #19969; add testcase for #19969 #15952 #16306 (#20610)ringabout2022-10-211-0/+27
| | | closes #19969; add testcase
* implemented strictCaseObjects (#20608)Andreas Rumpf2022-10-211-0/+27
| | | | | * implemented strictCaseObjects * changelog update
* Implemented `mSlice` on the VM allowing `toOpenArray` to work at compile ↵Jason Beetham2022-10-201-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | | time. (#20586) * Implemented opcSlice to make 'toOpenArray' work on the VM * Added nkOpenArray for VM to reduce bodgeness * Fixed range issues and erraneous comments * Range check correctly for openArrays in opcLdArr * Inverted logic for ldArr checking * vm now supports slicing strings * Added string tests * Removed usage of 'nkOpenArray' and redundant operations * Refactored vmSlice implementation, removing redundant and incorrect code * Made tuples go throw opcWrObj for field assignment * All strkinds should be considered for openarrays
* [backport] Handle nkOpenSymChoice for nkAccQuoted in considerQuotedIdent ↵SirOlaf2022-10-181-0/+15
| | | | | | | | | | | | (#20578) * Handle nkOpenSymChoice for nkAccQuoted in considerQuotedIdent * Add test * Update compiler/lookups.nim Co-authored-by: SirOlaf <a> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* refactor envvars, oserrors; register vmops (#20592)ringabout2022-10-181-1/+2
| | | | | * refactor envvars, oserrors; register vmops * remove type definitions
* fixes niminst with stricteffects; add testcase for niminst (#20587)ringabout2022-10-181-0/+5
| | | fixes niminst with stricteffects; add testcase
* fixes #20572 (#20585)Andreas Rumpf2022-10-171-0/+29
| | | | | * fixes #20572 * added a test case
* Fix #12517 Allow single branch when nimvm statements (#20577)Can Lehmann2022-10-171-0/+21
| | | Allow single branch when statements
* fixes #20515; base `method` requires explicit `{.gcsafe.}` to be GC-safe ↵ringabout2022-10-161-0/+20
| | | | | | | (#20574) * fixes #20515; base requires explicit `{.gcsafe.}` to be GC-safe * add tests
* fixes #19162; enable `strictEffects` for v2 (#19380)ringabout2022-10-155-8/+8
| | | | | | | | | | | | | | | | | | | * enable stricteffects * add gcsafe * fix tests * use func * fixes pegs tests * explicitly mark repr related procs with noSideEffect * add nimLegacyEffects * change URL * fixes docopt * add `raises: []` to repr * fixes weave * fixes nimyaml * fixes glob * fixes parsetoml * Apply suggestions from code review * Update testament/important_packages.nim * add legacy:laxEffects
* fix #19700 Crash when passing a template to a generic functio… (#20567)Bung2022-10-151-0/+10
| | | fix nim-lang#19700 Crash when passing a template to a generic function expecting a procedure
* fix #8821 JS codegen can produce extreme switch statements with case … ↵Bung2022-10-141-4/+1
| | | | | | | (#20548) * fix #8821 JS codegen can produce extreme switch statements with case a of range * remove totalRange
* fixes #3748 (#20563)Andreas Rumpf2022-10-141-0/+14
| | | | | | | | | * fixes #3748 * fix the regression * don't use the new allocator for the SSL wrapper * fixes regression
* fix #18136 tests/proc/t17157.nim now gives SIGSEGV instead of error (#20555)Bung2022-10-131-1/+0
|
* fix #18990 Regression in proc symbol resolution; Error: attempting to… ↵Bung2022-10-123-0/+7
| | | | | (#20554) fix #18990 Regression in proc symbol resolution; Error: attempting to call routine
* oids sticks to 24 length strings; fixes breaking changes (#20546)ringabout2022-10-121-1/+1
| | | oids sticks 24 length strings
* fix #7446 Generics: type mismatch 'SomeunsignedInt or Natural' (#20522)Bung2022-10-111-0/+10
| | | | | * fix #7446 Generics: type mismatch 'SomeunsignedInt or Natural' * try fix
* 'lock levels' are deprecated, now a noop (#20539)ringabout2022-10-1126-63/+56
| | | | | * 'lock levels' are deprecated, now a noop * fixes tests
* Make rstgen work with gcsafe (#20534)ringabout2022-10-101-0/+5
| | | | | | | | | | | * Make rstgen work with gcsafe Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com> * add tests and fixes * if nimHasWarningAsError Co-authored-by: Danil Yarantsev <tiberiumk12@gmail.com>
* Automatic dereferencing is removed (#20531)ringabout2022-10-102-49/+15
|
* fix #18886 crash on ambiguous proc cast (#20472)Bung2022-10-101-0/+18
| | | | | * fix #18886 crash on ambiguous proc cast * follow suggestion
* fixes #20516; system.create doesn't work with bitfield objects (#20518)ringabout2022-10-081-0/+7
| | | | | | | * Revert "fixes #19000 (#19032)" This reverts commit 2bda4a30a6b12dd0840dc347e454e54fe26721e7. * fixes #20516; add testcase
* closes #12994; add testcase (#20511)ringabout2022-10-081-0/+23
|
* fixes devel CI (#20512)ringabout2022-10-071-1/+1
|
* remove implicit let/var default initialization (#20508)ringabout2022-10-071-16/+16
|