Araq
a102eb5ef6
fixes #13646
2020-03-16 14:55:58 +01:00
Miran
14b2354b7d
rename lenTuple and lenVarargs ( #13639 )
...
* rename 'lenTuple' to 'tupleLen'
Rationale:
`lenTuple` is a tuple consisting of lengths (e.g. `(1, 5, 0)`),
`tupleLen` is a length of a tuple (e.g. `tupleLen((1, 5, 0) == 3`)
* rename 'lenVarargs' to 'varargsLen'
The same rationale as a previous commit. Consistency.
2020-03-12 20:07:02 +01:00
Timothee Cour
b80d293a3f
close #12704 by adding a test (tuple codegen error) ( #13592 )
...
* close #12704 by adding a test
* move test to tests/metatype/ttypedesc2.nim
2020-03-06 08:55:53 +01:00
Timothee Cour
451b724c40
make genericParams support static[T] generic params ( #13433 )
...
* make genericParams support static[T] generic params
* WrapStatic => StaticParam
2020-03-02 18:05:14 +01:00
Timothee Cour
273a93581f
fix incorrect lenTuple implementation ( #13423 )
2020-02-19 11:07:17 +01:00
Timothee Cour
7939319379
fix is with generic types; fix genericHead(Foo[T]) ( #13303 )
...
* fix #9855 , fix #9855 , fix genericHead
* render TTypeKind via toHumanStr
2020-02-09 13:48:55 +01:00
Timothee Cour
1f725f1d7e
miscellaneous bug fixes (part 3) ( #13304 )
...
* fix deprecation; fix indentation
* git clone: use -q
* fix Warning: pragma before generic parameter list is deprecated; fix typo
* bugfix: sysTypeFromName("float64") was never cached
2020-02-07 16:37:40 +01:00
Timothee Cour
7481f43753
fix #13349 regression: isNamedTuple now works with generic tuples ( #13350 )
2020-02-07 06:58:04 +01:00
cooldome
2bf337abae
fixes #13095 ( #13181 )
...
* fixes #13095
* fix typo
2020-01-17 09:17:18 +01:00
Timothee Cour
4cd86c0842
typetraits: fixes #6454 ; genericParams; added lenTuple; added tuple type get ( #13064 )
2020-01-10 08:51:37 +01:00
cooldome
871d5e79b1
distinctBase type trait for distinct types ( #13031 )
2020-01-08 00:36:57 +01:00
Timothee Cour
72499a8d7c
[cleanup] remove disabled (and obsolete) ttypetraits; rename ttypetraits2 => ttypetraits ( #13041 )
...
* remove disabled (and obsolete) ttypetraits; rename ttypetraits2 => ttypetraits
* D20200105T085828 fix super strange bug that causes CI to fail: builds.sr.ht with: `Error: Settle timed out after 120 attempts`
2020-01-05 19:33:33 +01:00
cooldome
0987872675
fixes #12804 ( #12809 )
2019-12-05 07:38:12 +01:00
narimiran
c6a451c584
remove unused imports from tests
2019-11-06 14:35:45 +01:00
Andreas Rumpf
3ba3307d61
remove deprecated procs ( #12535 )
2019-11-05 11:05:46 +01:00
Federico Ceratto
39290cf88c
Fix spellings ( #12277 ) [backport]
2019-09-27 07:02:54 +02:00
Andreas Rumpf
7bc5bf8334
consistent floating point output ( #12219 )
...
* unify float printing
* makes tests green
2019-09-20 10:41:40 +02:00
Timothee Cour
9ae0dd611f
typeToString can now show (recursively) resolved type aliases; fixes #8569 #8083 #8570 ( #11678 )
...
* nested typeToString
* typeToString: preferResolved
* add test
* fix test
* preferMixed
* fix tests
2019-08-31 08:26:45 +02:00
Andreas Rumpf
b044523c5a
fixes 9195 ( #12055 )
2019-08-27 10:07:42 +02:00
Araq
1868cbc449
revert the bugfix for #11747 as it really was a new, poorly though-out feature
2019-07-19 19:32:13 +02:00
Andreas Rumpf
15d2a92be0
fixes #11747
2019-07-17 15:19:25 +02:00
Arne Döring
cb45527e37
pass typedesc as NimNode to macros ( #11400 )
...
* change typedesc's design in macros
* Manual and changelog entry.
* add link to RFC
2019-06-05 09:17:04 +02:00
Arne Döring
f94ec363ab
Allow void macro result ( #11286 )
...
* allow void macro result
* add test for void macro result type
2019-05-21 21:31:40 +02:00
Clyybber
4fd79f5b47
Fix #11058 ( #11172 )
2019-05-05 08:26:22 +02:00
Miran
84d3f3d448
move system.dollars in a separate file ( #10829 )
2019-03-13 15:59:09 +01:00
Andreas Rumpf
1899d8d107
make tests green again
2019-01-14 20:11:33 +01:00
Timothee Cour
6ce3949c8a
add isNamedTuple; make $(1, 2) be (1, 2) instead of (Field0: 1, Field1: 2) 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
2019-01-08 18:37:25 -08:00
Timothee Cour
a6633b9658
fix typetraits.$ regression https://github.com/c-blake/cligen/issues/84 ( #10131 )
...
* fix typetraits.`$` regression https://github.com/c-blake/cligen/issues/84
* add test
2018-12-30 09:40:21 +01:00
Araq
3b783f7e13
Testament: refactoring; makes the test joiner green
2018-12-11 21:23:23 +01:00
Arne Döring
2a4c09ff88
megatest can be executed
2018-12-11 21:23:21 +01:00
Arne Döring
1105d03644
require errormsg to be specified before file.
2018-12-11 21:23:21 +01:00
Araq
562d185cb7
cleanup tests; don't use non-working 'msg' spec field
2018-11-23 13:16:45 +01:00
Arne Döring
031bfdec6f
make run the default action of a test in tester
2018-11-23 11:58:28 +01:00
Miran
1b17c9f693
More descriptive names of test files ( #9531 )
...
* change generic `tissues` name to more specific
* change `tvarious` to more specific names
2018-10-29 17:07:27 +01:00
Miran
749dbce4c6
Merge tests into a larger file (part 5 of ∞) ( #9368 )
...
* 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
2018-10-16 10:50:10 +02:00
Araq
f673fbd91f
fixes #6533
2018-10-02 19:54:02 +02:00
Mamy Ratsimbazafy
bccaa36aba
Tests for v1 closed generics/static issues ( #8572 )
...
* 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
2018-08-08 17:49:33 +02:00
Andreas Rumpf
ae82406c8b
make tests green again
2018-07-05 19:14:18 +02:00
Zahary Karadjov
16b594b532
Support default type parameters
...
progress on #7516
2018-06-16 16:46:32 +03:00
Zahary Karadjov
a49b06a52a
Implement the is operator for the new static and typedesc type classes
...
This also makes the first baby steps towards a sound treatment of
higher-order kinds (type type int).
Adds test cases showcasing the new features.
* Also fixes breakage after the rebase
2018-06-16 16:46:32 +03:00
Andreas Rumpf
74fe7a800b
make tests green again
2018-05-02 13:34:54 +02:00
Araq
8ae0ac8637
make tests green again
2018-04-07 00:39:33 +02:00
Araq
8b7c2bd067
fixes #7528
2018-04-06 22:42:25 +02:00
zah
121b9e26fb
Static[T] fixes ( #7333 )
...
* fix the usage of unresolved static[T] parameters in proc signatures
* fix tsametype and tmacrogenerics
* Allow creating composite type classes with concepts and using them in type signatures
* Allow integers to be used in ident concatenations
* Support using imported C++ generic types in proc signatures
* fixes #7230
* closes #7379
* re-enable some metatype tests
2018-03-24 15:28:09 +01:00
Araq
b57d14b1ae
make more tests green
2018-02-10 20:55:22 +01:00
Araq
ef6eda4cb4
better error messages: use <T1, T2> instead of (T1, T2) in order to prevent confusions with tuple types
2018-02-10 20:55:21 +01:00
Fabian Keller
6df6ec27ec
Improved collection-to-string behavior ( #6825 )
2017-12-14 14:02:13 +01:00
Jacek Sieka
22684370b0
remove ArrayDummySize with unchecked arrays ( #5818 )
2017-08-28 15:44:35 +02:00
Arne Döring
000b8afd26
Remove expr/stmt ( #5857 )
2017-07-25 09:28:23 +02:00
Zahary Karadjov
24966e006a
fix #1082
2017-06-20 11:29:42 +02:00