summary refs log tree commit diff stats
path: root/tests/enum/tenum.nim
Commit message (Collapse)AuthorAgeFilesLines
* re-enable tests (#23591)ringabout2024-05-101-4/+2
|
* unordered enum for better interoperability with C (#23585)ringabout2024-05-101-0/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ref https://forum.nim-lang.org/t/11564 ```nim block: # unordered enum block: type unordered_enum = enum a = 1 b = 0 doAssert (ord(a), ord(b)) == (1, 0) block: type unordered_enum = enum a = 1 b = 0 c doAssert (ord(a), ord(b), ord(c)) == (1, 0, 2) block: type unordered_enum = enum a = 100 b c = 50 d doAssert (ord(a), ord(b), ord(c), ord(d)) == (100, 101, 50, 51) block: type unordered_enum = enum a = 7 b = 6 c = 5 d doAssert (ord(a), ord(b), ord(c), ord(d)) == (7, 6, 5, 8) ```
* fixes #21280; Enum with int64.high() value crashes compiler (#21285)ringabout2023-05-061-0/+8
| | | | | | | | | | | | | | | * fixes #21280; Enum with int64.high() value crashes compiler * Update tests/enum/tenum.nim * Update tests/enum/tenum.nim * fixes tests * Update tests/enum/tenum.nim --------- Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* megatest now checks refc too (#21341)ringabout2023-02-091-1/+2
| | | | | * megatest now checks refc too * fixes refc
* closes #12589; add testcase (#20769)ringabout2022-11-061-2/+14
| | | | | | | * fixes #12589; add testcase * fixes i386 * i386
* followup #17876: remove annoying enum name clashes in tests/enum/tenum.nim ↵Timothee Cour2021-06-171-12/+11
| | | | (#18291)
* type with same name in different scope now works (#17710)Timothee Cour2021-04-141-2/+3
| | | | * type with same name in different scope now works * fix tests/enum/tenum.nim which was wrong because it was affected by this bug
* fix #15752 (#15754)cooldome2020-10-281-0/+9
|
* add tests for recently closed issues (#10722)Miran2019-02-231-0/+9
|
* Merge tests into a larger file (part 2 of ∞) (#9335)Miran2018-10-131-11/+144
| | | | | | | | | | | | | | * merge controlflow tests * merge distinct tests * merge enum tests * merge fields tests * merge implicit tests * merge iter issues tests
* Added a test caseYuriy Glukhov2016-05-181-0/+6
|
* tests: Trim .nim files trailing whitespaceAdam Strzelecki2015-09-041-8/+8
| | | | via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
* new tester; all tests categorizedAraq2014-01-131-0/+8