Commit Graph

81 Commits

Author SHA1 Message Date
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
Zahary Karadjov
36c4f0a89c close #1051 2017-06-20 11:29:42 +02:00
Zahary Karadjov
6f935598f4 close #3153 2017-06-20 11:29:42 +02:00
Zahary Karadjov
92ee2ee4ce close #4524 2017-06-20 11:29:42 +02:00
Araq
87732f797c fixes #5638 2017-04-04 12:08:34 +02:00
Araq
fa98edc78c another attempt to make test green again 2017-02-24 15:52:52 +01:00
Andreas Rumpf
f8914cc3b0 fixes a multimethod regression 2017-02-24 13:02:36 +01:00
Araq
36d3fd64da fixes #5354 2017-02-11 00:42:12 +01:00
Andreas Rumpf
54a6c5b348 fixes #5218 2017-01-16 23:04:53 +01:00
Andreas Rumpf
34dd08e9ae added missing test files 2016-08-26 14:49:57 +02:00
Andreas Rumpf
f47165af11 fixes #3706 2016-07-13 01:06:33 +02:00
Andreas Rumpf
b47d9b7b91 fixes #4371 2016-07-08 10:34:12 +02:00
Andreas Rumpf
164ebb6762 made test green 2016-01-05 10:19:36 +01:00
Araq
0d8c762452 cleanup of some tests 2015-12-01 00:53:30 +01:00
Araq
d93507fd2e fixes #3338 2015-10-22 10:24:46 +02:00
Araq
fd80a51547 fixes #2594 2015-09-18 12:07:39 +02:00
Araq
0aa908c86c clarify the meaning of the 'auto' metatype; 'auto' is now bind-multiple; fixes #3224 2015-09-14 20:25:52 +02:00
Adam Strzelecki
e80465dacf tests: Trim .nim files trailing whitespace
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
2015-09-04 23:04:32 +02:00
Peter Mora
6da8c7857e extending metatype matching in sigmatch.nim 2015-08-21 21:15:08 +02:00
Araq
beca7ded1b fixes #3144 2015-07-26 21:07:11 +02:00
Araq
e5d8988175 fixes #3112 2015-07-14 01:37:09 +02:00
Adam Strzelecki
a8fbaf917b Tests for static class proc, methods & iterators
This currently covers #2662 & #2710 bugs.
2015-05-13 19:10:54 +02:00
Araq
65e01c8b68 make test green 2015-04-11 10:01:09 +02:00
Araq
765f274629 fixes #1783 2015-03-23 00:09:34 +01:00
Araq
0d804c2052 fixes #2266 2015-03-22 01:38:14 +01:00