summary refs log tree commit diff stats
path: root/tests/views
Commit message (Collapse)AuthorAgeFilesLines
* fixes #22117; View types lifetime tracking does not work with defer (#22121)ringabout2023-06-191-0/+12
|
* fixes #21674; `lent` can be used in the fields or the cast type as a ↵ringabout2023-04-181-0/+16
| | | | | | | | | parameter (#21684) * fixes #21674; `lent` can be used in the fields or the cast type as a parameter * add a test case * fix the test
* Unpack mSlice tupleconstr for static openarrays (#20615)Jason Beetham2022-10-221-0/+11
|
* fixes #19986; mutable view from immutable location (#20134)ringabout2022-09-281-0/+42
| | | | | * fixes #19986; mutable view from immutable location * fixes the tests
* [Testament] Extend and document message testing aids (#19996)quantimnot2022-09-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [Testament] Extend and document message testing aids * Enable inline msgs when not reject action. Eliminates the pain of changing the line and column numbers in `nimout` or `output` while making changes to the test. * Enable using inline msgs and nimout together. Allows ease of inline msgs for the test as well as testing msgs from other modules. * Add path separator and test filename variable interpolation in msgs. Eases handling path separators in the msgs. * Add some documentation. * Fixed lots of broken tests * Fixed more broken tests * Support multiple inline messages per a line * Fix a broken test * Revert variable substitution in `output` * Remove uneeded params * Update doc/testament.md Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com> * Update testament/specs.nim Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com> * Update testament/specs.nim Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com> * Fix indentation Co-authored-by: quantimnot <quantimnot@users.noreply.github.com> Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
* closes #15897; add testcase (#19961)flywind2022-07-021-0/+11
|
* style usages part one (openarray => openArray) (#19321)flywind2022-01-041-1/+1
| | | | | * style usages (openArray) * revert doc changes
* fixes 'lent T' inside object constructor [backport] (#18911)Andreas Rumpf2021-09-271-0/+17
| | | | | * fixes 'lent T' inside object constructor [backport] * progress
* closes #18690; make view types stricter [backport] (#18891)Andreas Rumpf2021-09-241-1/+12
| | | | | * closes #18690 * don't allow capturing of view types [backport]
* closes #16132 [backport] (#18880)Andreas Rumpf2021-09-221-1/+13
| | | | | * closes #16132 [backport] * fixes #16132 [backport]
* view types: spec changes (#18226)Andreas Rumpf2021-06-101-5/+4
| | | | | | | | | | | | | * view types: spec changes * Update doc/manual_experimental.rst Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> * Update doc/manual_experimental.rst Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* close #17636 (#17643)flywind2021-04-061-3/+2
|
* ensure the Nim compiler works with --experimental:strictFuncs ↵Andreas Rumpf2020-10-262-0/+15
| | | | --experimental:views [backport:1.4] (#15737)
* fixes view types for sizeof() and --gc:orc (#15680)Andreas Rumpf2020-10-221-1/+1
|
* const view types; fixes some cases from ↵Andreas Rumpf2020-10-051-0/+26
| | | | https://github.com/nim-lang/Nim/issues/15428 (#15488)
* better support for view types (#15436)Andreas Rumpf2020-09-302-0/+88
| | | | | * you can put borrows into tables * enforces mutating views only mutate mutable data
* spec for view types (#15424)Andreas Rumpf2020-09-294-8/+22
| | | | | | | | | | | * spec for view types * spec additions * refactoring; there are two different kinds of views * refactorings and spec additions * enforce that view types are initialized * enforce borrowing from the first formal parameter * enforce lifetimes for borrowing of locals * typo in the manual * clarify in the implementation what a borrow operation really is
* 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/+82
* moved view tests to tests/views * refactoring * more refactorings * better support for system.toOpenArray for first class view types