summary refs log tree commit diff stats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* .noalias annotation; frontend support (#15419)Andreas Rumpf2020-09-281-0/+8
| | | | | * .noalias annotation; frontend support * added .noalias support to Nim; implements https://github.com/nim-lang/RFCs/issues/204
* produce runtime type information for reified openArrays (#15415)Andreas Rumpf2020-09-271-0/+42
| | | | | * produce runtime type information for reified openArrays * added a test case
* better support for slices as views (#15414)Andreas Rumpf2020-09-273-0/+37
| | | | | | * moved view tests to tests/views * refactoring * more refactorings * better support for system.toOpenArray for first class view types
* cursor inference: makes combparser work; refactorings (#15411)Andreas Rumpf2020-09-262-2/+6
| | | | * cursor inference: makes combparser work; refactorings
* fixes #14983 (#15320)Andreas Rumpf2020-09-251-1/+14
| | | | | | | | | * fixes #14983 * allow bootstrapping with 0.20 * added a test case for the new system.add with a sink parameter * make npeg green again
* Revert "fix #15035 (#15236)" (#15408)cooldome2020-09-241-18/+1
| | | This reverts commit f8c48fc1863a243718acf86b699baed1a5c1512e.
* fixes #15361 (#15401)Andreas Rumpf2020-09-244-9/+65
| | | * fixes #15361; better cursor inference
* fix #15333 (#15336)flywind2020-09-241-0/+17
|
* Fix #15389 (#15390)cooldome2020-09-241-0/+17
| | | | | | | | | * allow result symbol reuse * try different approach * Revert "try different approach" This reverts commit abcfb6b75983c2f798cc887342ff1a9ff10c0324.
* Fix forward declarations in shadow scope contexts (#15386)Clyybber2020-09-221-0/+77
| | | | | | | | | | | | | | | * Fix forward declarations in shadow scope contexts * Add testcase for #15385 * Less empty lines * Fix tests * Inline isShadowScope * Add original testcase (with reduced amount of iterations) * Add testcase without forward decl
* better nativestacktrace support; refs #15284; backport [1.2] (#15384)Andreas Rumpf2020-09-221-0/+18
| | | | | | | | | | | | | | | | | * nimStackTraceOverride: enable stack traces in exceptions This is a two-step stack trace collection scheme, because re-raised exceptions will collect multiple stack traces but use them rarely, when printing info about an uncaught exception, so it makes sense to only do the cheap stack unwinding all the time and the relatively expensive debugging information collection on-demand. `asyncfutures` implements its own `$` proc for printing `seq[StackTraceEntry]`, so we have to add the debugging info there, just like we do for the private `$` proc in `system/excpt`. * cleaned up PR #15284 Co-authored-by: Ștefan Talpalaru <stefantalpalaru@yahoo.com>
* Add strutils.indentation and make unindent use it (#15264)Clyybber2020-09-221-0/+22
| | | | | | | | | | | | | | | | | | | | | | | * Add strutils.indentation and make unindent use it * Code style * Fix bootstrapping * Improve wording * Fix test * Introduce without breaking change * Fix * Reduce diff * Fix docs link * Add since annotation * Update changelog
* add testcase for #6060 (#15366)flywind2020-09-211-0/+11
| | | | | | | * add testcase for #6060 * Remove overspecific testament spec Co-authored-by: Clyybber <darkmine956@gmail.com>
* add testcase for #7165 (#15368)flywind2020-09-211-0/+15
| | | | | | | * add testcase for #7165 * Remove overspecific testament spec Co-authored-by: Clyybber <darkmine956@gmail.com>
* fixes #15360 [backport:1.2] (#15378)Andreas Rumpf2020-09-211-0/+7
|
* add testcase for #9710 (#15365)flywind2020-09-211-0/+11
| | | | | * string is not nil anymore * tatus
* added a basic ORC test I still had lying around (#15376)Andreas Rumpf2020-09-201-0/+138
|
* arc: added tmarshal.nim test caseAraq2020-09-201-0/+140
|
* arc: =deepcopy fixesAraq2020-09-201-0/+67
|
* fixes #15369 (#15371)Andreas Rumpf2020-09-201-0/+14
|
* more ORC bugfixes (#15355)Andreas Rumpf2020-09-182-1/+47
| | | | | * introduced --define:nimArcIds * ORC: bugfixes
* fix infinite recursion in typeRel (#15241)jcosborn2020-09-181-0/+45
| | | | | * fix generic constraints Co-authored-by: James Osborn <osborn@Jamess-MacBook-Pro.local>
* Revert "Introduce explicit copy (#15330)" (#15346)Andreas Rumpf2020-09-161-22/+0
| | | This reverts commit a3e9cc52343a54cadc7b77b783e1c8b6ba2b327f.
* fix #15326 (#15341)cooldome2020-09-161-0/+8
|
* proc params as syms (#15332)cooldome2020-09-161-0/+8
| | | | | | | | | | | | | | | | | * proc params are now syms * Fix typesrenderer * Add testcase for disrupteks issue * fix test * Trigger build * Trigger build * Trigger build Co-authored-by: Clyybber <darkmine956@gmail.com>
* Introduce explicit copy (#15330)cooldome2020-09-161-0/+22
|
* fixes #15325 (#15340)Andreas Rumpf2020-09-161-0/+126
|
* allow old styled RTTI for arc/orc (#15331)Andreas Rumpf2020-09-161-3/+3
|
* fixes #15076 (#15329)Andreas Rumpf2020-09-151-0/+88
|
* fixes a critical ORC bug, refs #15076 (#15323)Andreas Rumpf2020-09-141-1/+1
|
* test cookies with comma for #15319 (#15322)flywind2020-09-141-0/+17
| | | | | * test cookies with comma for #15319 * space
* Fixing issue #15302 -- lwip doesn't support signals (#15303)Jaremy Creechley2020-09-141-0/+30
| | | | | | | | * Fixing issue #15302 -- lwip doesn't support signals * Adding test to catch issue #15302 -- lwip/freertos net library don't try to build / run on windows, it'll compile only but not run Fixing issue #15302 -- reworking test to compile on other platforms
* fixes #15147 (#15315)Andreas Rumpf2020-09-121-0/+21
|
* Add testcase for invalid if statement (#15313)Clyybber2020-09-121-0/+12
|
* Fix #15305 (#15311)Clyybber2020-09-121-0/+12
| | | | | * Fix #15305 * Fix test
* fixes #15122 (#15301)Andreas Rumpf2020-09-111-0/+43
|
* testament improvement: allow inline error messages inside test cases (#15294)Andreas Rumpf2020-09-101-10/+9
| | | | * testament support for inline error messages * adapt teffects1.nim test to show the potential
* Fix #15286 (#15292)cooldome2020-09-101-0/+8
| | | | | * fix #15286 * fix spacing
* fixes #15280 [backport:1.2] (#15281)Andreas Rumpf2020-09-093-4/+48
| | | | | | | * fixes #15280 [backport:1.2] * make tests green again * adapt tests
* borrow checking refinements (#15290)Andreas Rumpf2020-09-091-0/+18
| | | * added basic borrowing test
* Add some enhancements to `jsonutils.nim` (#15133)Ivan Bobev2020-09-091-2/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add some enhancements to `jsonutils.nim` * Use `jsonutils.nim` hookable API to add a possibility to deserialize JSON arrays directly to `HashSet` and `OrderedSet` types and respectively to serialize those types to JSON arrays. * Also add a possibility to deserialize JSON `null` objects to Nim option objects and respectively to serialize Nim option object to JSON object if some or to JSON `null` object if none. * Move serialization/deserialization functionality for `Table` and `OrderedTable` types from `jsonutils.nim` to `tables.nim` via the hookable API. * Add object `jsonutils.Joptions` and parameter from its type to `jsonutils.fromJson` procedure to control whether to allow deserializing JSON objects to Nim objects when the JSON has some extra or missing keys. * Add unit tests for the added functionalities to `tjsonutils.nim`. * improve fromJsonFields * Add changelog entry for the jsonutils enhancements * Add TODO in `jsonutils.nim` * Added an entry to "Future directions" section in `jsonutils.nim` as suggestion for future support of serialization and de-serialization of nested variant objects. * Added currently disabled test case in `tjsonutils.nim` for testing serialization and de-serialization of nested variant objects. * Move JSON hooks to `jsonutils.nim` Move `fromJsonHook` and `toJsonHook` procedures for different types to `jsonutils.nim` module to avoid a dependency of collections modules to the `json.nim` module. The hooks are removed from the following modules: * `tables.nim` * `sets.nim` * `options.nim` * `strtabs.nim` * Add some tests about `StringTableRef` Add tests for `StringTableRef`'s `fromJsonHook` and `toJsonHook` to `tjsonutils.nim`. * Disable a warning in `jsonutils.nim` Mark `fun` template in `jsonutils` module with `{.used.}` pragma in order to disable `[XDeclaredButNotUsed]` hint. The template is actually used by the `initCaseObject` macro in the same module. Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* add getprotobyname (#15273)flywind2020-09-091-0/+25
| | | | | | | * add getprotobyname * tests, docs, changelog * add since
* Better semiStmtList parsing (#15123)Clyybber2020-09-091-0/+165
| | | | | | | * Better semiStmtList parsing * Add examples from forums and wiki * Move parseIfExpr near parseIfOrWhen * Update grammar
* borrow checking (#15282)Andreas Rumpf2020-09-091-0/+27
| | | | | | | | | | | * refactoring: move procs to typeallowed.nim * frontend preparations for first class openArray support * prepare the code generator for first class openArray * code generation for first class openArray; WIP * code generation for open arrays, progress * added isViewType proc * preparations for borrow checking * added borrow checking to the front end
* "for-loop macros" are no longer an experimental feature (#15288)Miran2020-09-081-1/+1
|
* nimeval errorHook support (#15255)Scott Wadden2020-09-072-13/+29
|
* more Protocol supports in windows (#15274) [backport:1.2]flywind2020-09-071-0/+29
|
* strict funcs: use control flow information for a more precise analysis (#15271)Andreas Rumpf2020-09-061-3/+8
| | | | | * strict funcs: use control flow information for a more precise analysis * cursor inference uses control flow information
* Expand hoisted default params in sem (#15270)Clyybber2020-09-051-0/+75
| | | | | | | | | * Expand hoisted default params in sem Introduce ast.newTree{I,IT} Add test for default params in procs * Cleanup * Simplify hoist transformation and expand test
* fix #15238 (#15262)cooldome2020-09-041-1/+17
| | | | | * fix_15238 * fix test