Timothee Cour
78e2d299df
typo: nonexistant => nonexistent ( #17918 )
...
* typo: nonexistant => nonexistent
* fix test (ordering differs because of https://github.com/nim-lang/Nim/issues/17910 )
2021-05-02 00:26:41 +02:00
Timothee Cour
2abc936d51
typeof(voidStmt) now works (#17807 )
...
* `typeof(voidStmt)` now works
* remove typeOrVoid
* add condsyms, and reference cligen https://github.com/c-blake/cligen/pull/193
* fixup
* changelog [skip ci]
* fixup
2021-04-23 14:36:38 +02:00
Timothee Cour
e40ff24c23
typeToString: type float => typedesc[float] ( #17011 )
...
* typeToString: type float => typedesc[float]
* fixup
* fix tests
2021-02-12 17:10:20 +01:00
Clyybber
f2b041f168
Reenable a few tests
2020-07-14 19:50:42 +02:00
Neelesh Chandola
4c08e64e98
disallow typedesc in arrays & move existing checks to types.typeAllowedAux ( #13261 )
...
* disallow typedesc in arrays and move previous checks to types.typeAllowedAux
2020-05-29 11:48:15 +02:00
Jacek Sieka
7d6cbf290a
Error -> Defect for defects ( #13908 )
...
* 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.
2020-04-28 19:56:01 +02:00
Timothee Cour
b80d70b0f3
fix tests
2019-07-08 15:24:20 -07:00
narimiran
3b73da310c
close #9961 by adding a test
2019-05-30 12:34:27 +02:00
LemonBoy
6825430831
Restrict ptr/ref to ptr/ref implicit conversion ( #10411 )
...
* Restrict ptr/ref to ptr/ref implicit conversion
Fixes #10409
* Make the ptr conversions explicit in db_odbc
2019-01-22 11:17:20 +01:00
LemonBoy
ee89ba6bdb
Fix subtype conversion w/ varargs arguments ( #10402 )
...
The type matching is done on the `T` of the `varargs[T]` so the
conversion must be performed to `T` and not to the whole type.
This problem is only noticeable with the cpp backend since C doesn't
give a damn shit about your fucking (wrong) types.
Fixes #9845
2019-01-21 19:12:17 +01:00
Arne Döring
a5ecbf823f
lots of small changes
2018-12-11 21:23:22 +01:00
Arne Döring
3859878db8
megatest checks output and nimout
2018-12-11 21:23:22 +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
e012eb1001
updated tests to be executed
2018-11-23 11:58:28 +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
LemonBoy
e69d8ec416
Fix type comparison in semConv ( #8907 )
...
Fixes #8905
2018-09-07 21:06:30 +02:00
LemonBoy
88714e77d8
Fix comparison of tyGenericBody in typerel ( #8045 )
...
As shown in #7734 and #7733 the logic in typerel fails to determine that
`type Foo` and `type Foo` are indeed equal.
Fixes #7734
2018-07-07 20:49:06 +02:00
LemonBoy
ab47a870bc
Error out if vararg match isn't an exact one ( #8186 )
...
Fixes #8172
2018-07-03 15:10:12 +02:00
andri lim
4262a85653
fixed wrong test
2018-06-06 22:29:31 +07:00
andri lim
436c122956
combine/reduce test
2018-06-05 22:16:53 +07:00
andri lim
8063ecbb8f
fix test case output
2018-06-05 16:54:01 +07:00
andri lim
80107b360c
add more test to 4799
2018-06-05 09:18:20 +07:00
Andreas Rumpf
d8fde9daba
make tests green
2018-05-05 21:45:07 +02:00
Oscar Nihlgård
cc0ca43743
Don't hide overflow/underflow/divbyzero in semfold ( #7732 )
...
* firstOrd/lastOrd bugfix
* Don't hide overflow/underflow/divbyzero in semfold
2018-05-02 08:54:09 +02:00
andri lim
e4aa140d22
fixes #7600 , generic object with generic ref object parent typerel bug ( #7678 )
...
* fixes #7600
* fix wrong logic
2018-04-27 08:53:20 +02: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
Arne Döring
000b8afd26
Remove expr/stmt ( #5857 )
2017-07-25 09:28:23 +02:00
Zahary Karadjov
7db883e4d3
make some tests green again
2017-06-20 11:29:42 +02:00
Andreas Rumpf
eafa65fc64
real world examples compile
2016-12-06 15:37:09 +01:00
Araq
1c20046f28
sighashes: make more tests green
2016-11-29 10:37:32 +01:00
Andreas Rumpf
dc4b2c920c
fixes #4328
2016-07-19 19:27:38 +02:00
Andreas Rumpf
d779a9b722
fixes #4478
2016-07-18 12:16:54 +02:00
Andreas Rumpf
b47d9b7b91
fixes #4371
2016-07-08 10:34:12 +02:00
Andreas Rumpf
eae30d1961
fixes #950
2016-05-12 00:38:15 +02:00
Andreas Rumpf
dd613adcfe
made tests green again
2016-03-29 21:44:42 +02:00
Andreas Rumpf
c9966a3e17
use 'using' instead of 'sig' keyword; cleans up new features a bit
2016-02-29 12:19:54 +01:00
def
c50b5b62ef
Fix a few deprecation warnings
2016-01-25 19:10:37 +01:00
Araq
36f68e1650
fixes #3329
2015-09-18 02:24:12 +02:00
Araq
d5c5fd425f
fixes #3230
2015-09-09 09:39:47 +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
Araq
5409142120
fix recently introduced regressions
2015-07-22 18:49:18 +02:00
Araq
b0b716fca7
fixes #3079 , fixes #1146 , fixes #2879
2015-07-22 16:32:56 +02:00
Araq
cabbcd411d
implements varargs[untyped]; refs #2545 ; to be documented
2015-07-02 16:18:11 +02:00
Araq
87d69135b8
disabled unimportant old test
2015-07-02 14:57:02 +02:00
fowlmouth
80a13a408e
added a test
2015-06-01 11:01:50 -05:00
Araq
ab5b8f5391
fixes #1988
2015-01-31 16:23:38 +01:00
Araq
ee4e95fefe
fixes #2039
2015-01-31 11:31:59 +01:00
Araq
2ee2401336
fixes #1774
2014-12-31 16:07:56 +01:00