Sergey Rostov
f35185b261
Build: remove explicit dependencies to org.jetbrains.annotations
2019-01-28 13:43:08 +03:00
Dmitry Savvinov
e483f83666
Make 'is'-operator more stupid
...
Consider following expression: 'call() is Foo'. Suppose that we know
something about the 'call()', e.g. 'returns(foo) -> <condition>'
Previously, we've tried to re-use knowledge about 'call()', constructing
some smart clause, like 'returns(true) -> foo is Foo && <condition>'.
The conceptual error here is that *we can't* argue that <condition>
holds. Imagine that 'call()' actually has unspecified 'returns(foo2) ->
<!condition>', and 'foo2 is Foo' also holds. Then we would get
'returns(true) -> foo2 is Foo && <condition>' <=> 'returns(true) ->
<condition>' for the whole call, which is not correct.
More concrete example would be something like:
'if (!x.isNullOrEmpty() is Boolean)'
^KT-27241 Fixed
2019-01-17 12:47:27 +03:00
Sergey Rostov
883970fadb
Add explicit dependencies to nullable annotations
2018-12-26 09:07:06 +03:00
victor.petukhov
04fa6e8ab4
Add tests for local variables with type parameters (KT-8341)
2018-12-25 17:51:05 +03:00
victor.petukhov
a72515d822
Add tests for constructors of annotation classes with JvmOverloads (KT-25702)
2018-12-25 17:50:55 +03:00
victor.petukhov
8c0ad321e2
Add black box tests for objects inheritance problem (KT-25289)
2018-12-14 14:36:17 +03:00
victor.petukhov
fc381e25c8
Remove diagnostic tags from black box spec tests for annotations
2018-12-14 14:36:17 +03:00
victor.petukhov
f3774b8e19
Add black box spec tests validation
2018-12-14 14:36:16 +03:00
victor.petukhov
6c4f255393
Actualize PSI spec tests after fix KT-27762
2018-12-07 18:35:43 +03:00
victor.petukhov
60def724be
Fix invalid package pattern in spec tests parser
2018-12-07 18:35:43 +03:00
victor.petukhov
b9d1825765
Implement tests exceptions fixation mechanism
2018-12-07 18:35:43 +03:00
Georgy Bronnikov
1a529bd601
Revert "Switch off logging for failing IrBlackBox tests"
...
This reverts commit d23964034b .
2018-11-28 00:00:13 +03:00
Georgy Bronnikov
d23964034b
Switch off logging for failing IrBlackBox tests
...
Logging of tests that are expected to fail is controlled by
kotlin.suppress.expected.test.failures project property.
2018-11-27 16:53:34 +03:00
victor.petukhov
f5d44003cd
Add tests for type annotations with unresolved reference and invalid target (KT-28424, KT-28449)
2018-11-27 13:55:12 +03:00
victor.petukhov
68c1e70b74
Add real literals spec tests
2018-11-23 17:24:13 +03:00
victor.petukhov
73ecde6cc3
Add boolean literals diagnostic spec tests
2018-11-23 17:24:01 +03:00
victor.petukhov
1af1eed31c
Add when expression PSI spec tests
2018-11-23 17:23:51 +03:00
victor.petukhov
64f531fc93
Reorganize spec tests infrastructure code
...
- Add the tests mute system for the diagnostic tests
- Move the code for the test info parsing to the separate package `parsers`
- Unification of the `linked` and `not linked` spec tests
- Package structure is refactored
- Change the multiline comment format with a test information
- Actualize `PrintSpecTestsStatistic`
- Other different code improvements
2018-11-23 17:23:41 +03:00
victor.petukhov
b86211b434
Add spec tests for integer literals
2018-10-12 17:31:24 +03:00
victor.petukhov
c01362a943
Fix path separators for Windows in spec test validator
2018-10-09 10:00:07 +03:00
victor.petukhov
4ee0a666cb
Temporary mute test with FrontEndException (KT-26386)
2018-10-09 09:59:56 +03:00
victor.petukhov
f61980732b
Mute tests with unexpected behaviour
2018-10-09 09:59:46 +03:00
victor.petukhov
e90cf4b955
Actualize test with return expression in contract description (implies)
2018-10-09 09:59:35 +03:00
victor.petukhov
4a372458d6
Include part of the spec tests to the compiler dist tests
2018-10-09 09:59:20 +03:00
victor.petukhov
30fc76a602
Remove redundant directives to contracts use
2018-10-03 13:49:32 +03:00
victor.petukhov
4819223b74
Add generated codegen box tests for Boolean literals as identifiers
2018-10-03 13:49:31 +03:00
victor.petukhov
1bc0c4092c
Add codegen box test templates for identifiers
2018-10-03 13:49:30 +03:00
victor.petukhov
dd91727a78
Add generated PSI tests for Boolean literals as identifiers
2018-10-03 13:49:22 +03:00
victor.petukhov
ed73513d48
Add PSI test templates for identifiers
2018-10-03 13:49:20 +03:00
victor.petukhov
4bfa90dc25
Refactor files in the 'spec' package
2018-10-03 13:49:11 +03:00
victor.petukhov
45c5a168a3
Implement feature interaction tests generator based on templates
2018-10-03 13:48:22 +03:00
victor.petukhov
6f95e4ae3b
Add codegen box spec tests support
2018-10-03 13:29:25 +03:00
victor.petukhov
8538866778
Add few tests for contracts
...
- Contracts in getter/setter (unexpected behaviour)
- Check smartcasts when non-null assertion for a contract function is used
- Check work of contracts when type parameter of the callsInPlace is specify explicitly
- Check smartcasts working if type checking for contract function is used
2018-10-03 13:29:13 +03:00
victor.petukhov
ecb3f10e47
Add 'mute' concept: move tests with unexpected behaviour to the corresponding folder
2018-10-03 13:26:37 +03:00
victor.petukhov
84dc28374c
Add multilevel sections support and corresponding renaming
2018-10-03 13:26:29 +03:00
victor.petukhov
023e4e3a0e
Actualize tests after KT-27260 fix
2018-10-02 11:49:10 +03:00
victor.petukhov
50d9dbbfc1
Fix inheritance in stdlib contracts code (KT-26409)
2018-09-12 12:34:15 +03:00
victor.petukhov
cba99a1e67
Move test to negatives after fix KT-26382
2018-09-12 12:32:57 +03:00
victor.petukhov
e082fe19ea
Actualize contracts diagnostic spec tests after 051ad0f79e
2018-09-05 18:04:58 +03:00
victor.petukhov
af732d16d6
Actualize contracts diagnostic spec tests
2018-09-05 14:08:50 +03:00
victor.petukhov
921fc263e1
Remove PSI spec tests generation
2018-09-04 15:54:04 +03:00
victor.petukhov
110bc7412d
Fix name of 'controlflow' folder with contract tests
2018-08-31 17:27:51 +03:00
victor.petukhov
d9473c0b6e
Add parsing spec tests support
2018-08-31 17:16:19 +03:00
victor.petukhov
f322aba768
Add gradle task to generate json tests map
2018-08-31 17:16:10 +03:00
victor.petukhov
88d8bb84ac
Add not linked spec tests support in printSpecTestStatistic gradle task
2018-08-31 17:16:00 +03:00
victor.petukhov
8d91e5998d
Add spec tests for contracts
2018-08-31 17:15:51 +03:00
victor.petukhov
ecf8b88c4c
Add 'not linked' kind of spec tests
2018-08-31 17:15:40 +03:00
victor.petukhov
e01e832acd
Add gradle task to print spec tests statistic by spec sections
2018-08-14 17:34:38 +03:00
victor.petukhov
bed4c5f2f0
Add diagnostic spec tests for 'When expression' section
2018-08-14 17:34:15 +03:00
victor.petukhov
0a58898817
Add diagnostic spec tests generator and validator, helper functions and classes
2018-08-14 17:33:54 +03:00