summary refs log tree commit diff stats
path: root/tests/generics
Commit message (Collapse)AuthorAgeFilesLines
* add `isNamedTuple`; make $(1, 2) be (1, 2) instead of (Field0: 1, Field1: 2) ↵Timothee Cour2019-01-081-1/+1
| | | | | | | | | | | | | 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
* megatest: make it green on LinuxAraq2018-12-113-4/+3
|
* make more tests greenAraq2018-12-112-36/+8
|
* testament: joinable is now an explicit concept of a test specAndreas Rumpf2018-12-111-0/+3
|
* Testament: refactoring; makes the test joiner greenAraq2018-12-116-2/+10
|
* lots of small changesArne Döring2018-12-114-4/+4
|
* megatest checks output and nimoutArne Döring2018-12-114-133/+127
|
* require errormsg to be specified before file.Arne Döring2018-12-116-16/+3
|
* cleanup tests; don't use non-working 'msg' spec fieldAraq2018-11-231-1/+1
|
* updated tests to be executedArne Döring2018-11-232-2/+13
|
* make run the default action of a test in testerArne Döring2018-11-232-1/+13
|
* disable some tests for the C++ target; refs #7870Araq2018-11-151-9/+10
|
* adopt testsArne Döring2018-11-081-1/+1
|
* More descriptive names of test files (#9531)Miran2018-10-293-6/+8
| | | | | * change generic `tissues` name to more specific * change `tvarious` to more specific names
* closes #6220Araq2018-10-181-0/+415
|
* make some tests faster (#9413)Miran2018-10-171-5/+5
| | | | | | | | | | | | * remove duplicated slow test * smaller `convex hull` * smaller sleep * faster `trtree` * smaller sleep in `tfuturestream`
* Merge tests into a larger file (part 5 of ∞) (#9368)Miran2018-10-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Merge tests into a larger file (part 3 of ∞: generics) (#9347)Miran2018-10-1465-1276/+1236
| | | | | | | | | | | | * merge generics issues tests * merge tgeneric * merge test with local imports * merge tcan tests * merge matcher tests * more issue tests merged * one more tcan test * merge various small tests into one file * add a test for #3717
* add issue #5707 as test case (#9361)Vindaar2018-10-141-0/+6
|
* fix tests/generics/t8694.nim: runnableExamples were not run because of #9216 ↵Timothee Cour2018-10-091-3/+3
| | | | (#9262)
* Fix regression with runnableExamples in generic exprLemonBoy2018-09-302-0/+64
| | | | | | | | The examples should not enter the generic analysis at all. The regression was introduced in 4cf704bb as a fix for #8694. Fixes #9130 Fixes #8694
* fixes #8883Araq2018-09-141-0/+657
|
* fixes #7854Araq2018-08-301-0/+36
|
* make generic tests green againAndreas Rumpf2018-08-131-2/+2
|
* Merge branch 'devel' into araq-miscAndreas Rumpf2018-08-102-0/+39
|\
| * Tests for v1 closed generics/static issues (#8572)Mamy Ratsimbazafy2018-08-082-0/+39
| | | | | | | | | | | | | | | | * Add tests to confirm https://github.com/nim-lang/Nim/issues/7231 is fixed. * Add test for closed https://github.com/nim-lang/Nim/issues/6137 * Add test for https://github.com/nim-lang/Nim/issues/7141
* | make test green againAraq2018-08-081-6/+6
|/
* Try conversion to static[T] in generic instantation (#8443)LemonBoy2018-07-301-0/+10
| | | Fixes #8439
* Allow use of typedesc as type converters (#8409)LemonBoy2018-07-241-0/+11
| | | Fixes #8403
* Do not crash while instantiating a generic outside a call (#8279)LemonBoy2018-07-141-0/+7
| | | Fixes #8270
* Reset typedescMatched before paramTypesMatch (#8250)LemonBoy2018-07-091-0/+15
| | | | | The flag should not be carried out across different parameters. Fixes #7794
* make tests green againAndreas Rumpf2018-07-054-5/+5
|
* fix #6928; fix #7208Zahary Karadjov2018-06-161-0/+21
|
* fixes #7222; fixes #5595; fixes #3747Zahary Karadjov2018-06-161-0/+124
| | | | | | | | | | * late instantiation for the generic procs' default param values * automatic mixin behaviour in concepts Other fixes: * don't render the automatically inserted default params in calls * better rendering of tyFromExpr
* fix #7653Zahary Karadjov2018-06-101-1/+3
|
* Fix type inference with static literals.LemonBoy2018-06-101-0/+12
| | | | Fixes #3977
* Bugfix: The compiler were not inserting proper downcasts for generic typesZahary Karadjov2018-05-072-1/+21
| | | | | | | This resulted in a codegen error in C++ mode, because the generic types were not defined in modules where calls requiring downcasts were used (generating a downcast forces the inclusion of the full definition of the involved types).
* fixes #7247Andreas Rumpf2018-02-231-6/+15
|
* make more tests greenAraq2018-02-102-2/+2
|
* better type inference for numerical types; prerequisitive for version 1Andreas Rumpf2018-02-021-0/+12
|
* Improved collection-to-string behavior (#6825)Fabian Keller2017-12-141-2/+2
|
* make tests green againAndreas Rumpf2017-11-181-0/+1
|
* Remove expr/stmt (#5857)Arne Döring2017-07-254-5/+5
|
* close #5106Zahary Karadjov2017-06-201-0/+61
|
* close #5756Zahary Karadjov2017-06-201-0/+30
|
* fix #5864Zahary Karadjov2017-06-201-0/+14
|
* Fix #5962Zahary Karadjov2017-06-201-0/+81
| | | | | | | | | | | | | | | During the instantiation of a generic type A, some other generic type B may be instantiated multiple times with different parameters. We can think about each instantiation as a function call that should temporary bind the parameter names to concrete types. The problem with the existing implementation in semtypinst was that it was performing this binding within a shared global table. In this sense, it was executing the code as a programming language featuring only global variables. In such a language, re-entrant functions cannot be defined properly and hence this was leading to problems with similar types. The solution is simple - just like we need to introduce stack frames to handle re-entrant functions, we introduce a stack of type bindings that are pushed and popped during the generic instantiations.
* fixes tproctypecache_falsepositive.nim test caseAraq2017-06-081-0/+17
|
* fix 5756Zahary Karadjov2017-04-301-0/+39
|
* alternative fake covariance based on convertersZahary Karadjov2017-04-282-3/+25
|