summary refs log tree commit diff stats
path: root/tests/system/tsystem_misc.nim
Commit message (Collapse)AuthorAgeFilesLines
* style usages part one (openarray => openArray) (#19321)flywind2022-01-041-2/+2
| | | | | * style usages (openArray) * revert doc changes
* Raise IndexDefect when deleting element at out of bounds index (#17821)Heiko Nickerl2021-06-201-5/+0
| | | | | Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Heiko Nickerl <mail@hnicke.de> Co-authored-by: Heiko Nickerl <heiko.nickerl@flipapp.de>
* fix #12311 (#16578)flywind2021-01-041-0/+7
|
* Error -> Defect for defects (#13908)Jacek Sieka2020-04-281-8/+8
| | | | | | | | | | | | | | * Error -> Defect for defects The distinction between Error and Defect is subjective, context-dependent and somewhat arbitrary, so when looking at an exception, it's hard to guess what it is - this happens often when looking at a `raises` list _without_ opening the corresponding definition and digging through layers of inheritance. With the help of a little consistency in naming, it's at least possible to start disentangling the two error types and the standard lib can set a good example here.
* cleanup Ordinal (#13501)Timothee Cour2020-02-271-0/+17
|
* miscellaneous bug fixes (#13291)Timothee Cour2020-01-301-0/+9
| | | | | | | | * fix for emscripten etc * add testcase for #13290 * replace deprecated isNilOrWhitespace
* fix min/max for float numbers (#12068)Arne Döring2019-09-021-1/+11
|
* Fix to int to biggest int (#12066)Arne Döring2019-08-271-0/+15
| | | | | * fix to(Biggest)Int * kill toFloat magics as well
* 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
ss="w"> branch: devel