summary refs log tree commit diff stats
path: root/tests/range
Commit message (Collapse)AuthorAgeFilesLines
* Error -> Defect for defects (#13908)Jacek Sieka2020-04-282-2/+2
| | | | | | | | | | | | | | * 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.
* catchable defects (#13626)Andreas Rumpf2020-03-122-2/+2
| | | | | | | | | | * allow defects to be caught even for --exceptions:goto (WIP) * implemented the new --panics:on|off switch; refs https://github.com/nim-lang/RFCs/issues/180 * new implementation for integer overflow checking * produce a warning if a user-defined exception type inherits from Exception directly * applied Timothee's suggestions; improved the documentation and replace the term 'checked runtime check' by 'panic' * fixes #13627 * don't inherit from Exception directly
* fix range[enum] type conversion (#13204) [backport]Jasper Jenkins2020-01-201-0/+33
|
* Merge branch 'devel' into uint-range-checksAndreas Rumpf2019-09-021-0/+6
|\
| * weaking unsigned/signed indexing requirements in order to not break too much ↵Araq2019-09-021-0/+6
| | | | | | | | existing code
* | make test greenAraq2019-09-021-38/+48
| |
* | Merge branch 'devel' into uint-range-checksAraq2019-09-021-0/+18
|\|
| * Fix int literals and range interaction (#11197)Oscar Nihlgård2019-08-311-2/+9
| | | | | | | | | | | | | | | | * Fix int literals and range interaction * Fix test * remove float range fix; update changelog
| * Fix several float range issuesOscar Nihlgård2019-08-271-0/+11
| |
* | renamed and moved testAraq2019-09-021-0/+42
|/
* Tighten the conversion from tyRange to scalar types (#10495)LemonBoy2019-02-231-0/+13
| | | | | | | | | * Tighten the conversion from tyRange to scalar types. Introduce the `isIntConv` rule for unsigned types. Do not allow mixed-signedness conversions between ranges and scalar types. * More json adjustments
* require errormsg to be specified before file.Arne Döring2018-12-113-5/+1
|
* Merge tests into a larger file (part 5 of ∞) (#9368)Miran2018-10-165-112/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * merge magics * merge metatype tests * merge method tests * merge objects tests * change `import future` to `import sugar` Nim in Action tests are left with `import future`, to ensure compatibility. * merge overload tests * merge proc tests * merge procvar tests * merge range tests * merge seq tests * merge sets tests * remove wrong assert from `tsets3` * fix `jsTests` * better fix
* make tests green againAndreas Rumpf2018-05-021-1/+1
|
* Fix typo in new testDaniil Yarancev2017-11-011-1/+1
|
* make range type checking more restrictive, see tn8vsint16 test case; minor ↵Andreas Rumpf2017-11-011-0/+18
| | | | breaking change
* Remove expr/stmt (#5857)Arne Döring2017-07-251-3/+2
|
* tests: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-046-28/+28
| | | | via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
* made some tests greenAraq2014-08-312-3/+2
|
* made some tests greenAraq2014-08-131-2/+2
|
* Changed tests and tools to use 'discard' statements instead of 'nil' for ↵Clay Sweetser2014-02-152-2/+2
| | | | empty blocks.
* new tester; all tests categorizedAraq2014-01-137-0/+157