summary refs log tree commit diff stats
path: root/tests/system/tsystem_misc.nim
Commit message (Collapse)AuthorAgeFilesLines
* add `isNamedTuple`; make $(1, 2) be (1, 2) instead of (Field0: 1, Field1: 2) ↵Timothee Cour2019-01-081-0/+11
| | | | | | | | | | | | | which leaked implementation detail (#10070) * add `isNamedTuple`; make $(1, 2) be (1, 2) instead of leaking implementation detail (Field0: 1, Field1: 2) fixes this: #8670 (comment) /cc @alehander42 @Vindaar @mratsim * Note: isNamedTuple is useful in other places, eg #10010 (comment) * move isNamedTuple to helpers.nim to avoid exposing new symbol to system.nim * remove workaround in tests/vm/tissues.nim failing test now that #10218 was makes it work
* fix bug in doAssertRaises when exception==Exception (#10172)Timothee Cour2019-01-041-0/+12
| | | | | * fix bug in doAssertRaises when exception==Exception * add testcase for doAssertRaises
* revives: Move typetraits.`$` to system. Fixes #5827 (#10071)Timothee Cour2018-12-301-0/+14
| | | | | | * Move typetraits.`$` to system. Fixes #5827. * revive PR; adjust code to make sure everything works and add tests * fix tests/concepts/tstackconcept.nim * address comments
* Add `toOpenArray[T](ptr UncheckedArray[T])` for clarity. (#9316)c-blake2018-10-121-0/+5
| | | | | | | | | | | * Add `toOpenArray[T](ptr UncheckedArray[T])` for clarity. `ptr array[0,T]` for some unchecked type already works but A) `UncheckedArray` seems to be the intended future way for this kind of access, and B) essentially all use cases will have a `ptr` for that kind of array source and this call signature lets callers drop the trailing `[]` corresponding to that `ptr` deref. This PR relates to issue https://github.com/nim-lang/Nim/issues/9001 . * Add a test for toOpenArray() for UncheckedArray[T]s.
* fixes #9281Araq2018-10-111-0/+15
|
* Add proc toOpenArray[byte] for strings (#7820)Dmitry Atamanov2018-07-071-0/+16
|
* test negative range arraynitely2018-06-061-0/+14
|
* check bounds instead of indexnitely2018-06-051-0/+25
|
* added toOpenArray builtin for zero-copy slices; syntax sugar yet to comeAraq2018-03-241-1/+28
|
* fixes #6710Andreas Rumpf2017-11-081-0/+4
|
* Implementation of high/low for SomeReal (#6570)Fabian Keller2017-10-301-0/+18