summary refs log tree commit diff stats
path: root/lib/system/assertions.nim
Commit message (Collapse)AuthorAgeFilesLines
* fixes #17033 [backport:1.4] (#17061)Andreas Rumpf2021-02-171-4/+2
| | | | | | | * fixes #17033 [backport:1.4] * make test robust against stdlib gensym things * cleanup assertions.nim to make topt_no_cursor easier to get right
* Improve documentation for assertions (#16988)konsumlamm2021-02-111-35/+51
| | | | | | | | | | | * Improve documentation for assertions * Apply suggestions Fix tests/assert/tassert_c.nim * Use runnableExamples * Move runnableExamples to module scope
* Fix broken links in docs (#16336)Elliot Waite2020-12-141-1/+1
| | | | | * Fix broken links in docs * Fix rand HSlice links
* doAssertRaises improvements; nimscript supports `except Exception as e` (#15765)Timothee Cour2020-11-121-9/+10
| | | | | | | * doAssertRaises now correctly handles foreign exceptions; now shows which exception is raised on mismatch * nimscript now handles `Exception as e` * remove catch-all doAssertRaises overload from this PR Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* init checks and 'out' parameters (#14521)Andreas Rumpf2020-06-231-0/+1
| | | | | | | | | | | * I don't care about observable stores * enforce explicit initializations * cleaner code for the stdlib * stdlib: use explicit initializations * make tests green * algorithm.nim: set result explicitly * remove out parameters and bring the PR into a mergable state * updated the changelog
* fix js stacktraces, unify all file,line,col formatting into a single ↵Timothee Cour2020-05-051-2/+2
| | | | | function (#14230) * fix https://github.com/timotheecour/Nim/issues/135 ; unify all file,line,col formatting into a single function
* Error -> Defect for defects (#13908)Jacek Sieka2020-04-281-6/+6
| | | | | | | | | | | | | | * 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.
* Documentation, add more examples (#13825)Juan Carlos2020-04-011-2/+2
|
* Add Documentation (#13811)Juan Carlos2020-03-311-0/+6
| | | | * Add more Docs and runnableExamples
* fixes #13519Araq2020-03-111-1/+1
|
* sink parameter inference for types that have destructors (#13544)Andreas Rumpf2020-03-041-1/+3
| | | | | | | | | | | | | | * ensure capitalize doesn't take an inferred sink parameter * sink parameter inference: first version, for now disabled. Changed that sink parameters can be consumed multiple times in order to adhere to our spec. * sink inference can now be disabled with .nosinks; sometimes for proc type interop this is required * fixes yet another critical DFA bug * better implementation that also understands if expressions etc * document sink parameter inference and allow for global disabling
* fix error in assertions document (#12925) [backport]flywind2019-12-181-1/+1
|
* Fix many broken linksJjp1372019-10-221-1/+1
| | | | | | Note that contrary to what docgen.rst currently says, the ids have to match exactly or else most web browsers will not jump to the intended symbol.
* Fixes #12044 (#12071)Ico Doornekamp2019-08-281-5/+5
|
* styleCheck: make the compiler and large parts of the stdlib compatible with ↵Araq2019-07-101-2/+2
| | | | --styleCheck:error
* assertions: fixes #11545 (#11605)alaviss2019-07-011-3/+5
| | | | | | | | | | | | | | * assertions: properly fix #11545 * tests/assert: enable excessiveStackTrace * tests/assert: add test case for #11545 * tfailedassert_stacktrace: disable excessiveStackTrace * assertions: weird workaround for failing tests This fixes megatest on *nix, but have no idea why
* assertions: make assert follow excessiveStackTrace (#11574)alaviss2019-06-251-3/+1
|
* Allow void macro result (#11286)Arne Döring2019-05-211-1/+1
| | | | | * allow void macro result * add test for void macro result type
* move system.dollars in a separate file (#10829)Miran2019-03-131-2/+14
|
* system: some documentation improvements (#10809)Miran2019-03-111-1/+1
|
* move assertions and iterators out of system.nim (#10597)Miran2019-03-071-0/+89
* move assertions and iterators out of system.nim * limit nimsuggest tests to the first 3 suggestions