Pavel V. Talanov
a4c005fefd
Update existing test data depending on diagnostic parameter rendering
2016-02-26 14:45:11 +03:00
Natalia Ukhorskaya
43476bd773
Do not drop negation if resulting type isn't boolean
2015-12-17 11:11:33 +03:00
Natalia Ukhorskaya
fc7c45d4d0
NegatedExpressionWithDemorgansLaw may produce code with error
2015-12-17 11:11:30 +03:00
Yan Zhulanow
9d1af5a17e
Fix tests: "infix modifier required" and "operator modifier required" errors
2015-11-27 15:51:11 +03:00
Nikolay Krasko
911432c99c
Use default render to check are all errors mentioned in tests. It's far more easier to read.
2015-10-28 13:39:46 +03:00
Denis Zharkov
f0e3fd617d
Adjust testData to CharSequence.length transformation
2015-10-14 20:39:35 +03:00
Yan Zhulanow
6db9344659
Fix compiler tests
2015-09-25 19:20:20 +03:00
Valentin Kipyatkov
9c0d607894
Replace "||" with "&&" (and the opposite) made more clever about negating expressions
2015-06-04 01:05:50 +03:00
Valentin Kipyatkov
ac6ef6b544
KT-7454 Replace "||" with "&&" adds unnecessary parethesis
...
#KT-7454 Fixed
2015-06-04 01:05:50 +03:00
Alexander Udalov
fe544eaf71
Rename jet -> kotlin in idea: intentions
...
org.jetbrains.jet.plugin.intentions -> org.jetbrains.kotlin.idea.intentions
2015-01-13 01:14:37 +03:00
Alexander Udalov
a7b88e9485
Make CharSequence.length a function instead of property
...
And String.length as well.
This is done for JVM interoperability: java.lang.CharSequence is an open class
and has a function 'length()' which should be implemented in subclasses
somehow.
A minor unexpected effect of this is that String.length() is now a compile-time
constant (it wasn't such as a property because properties are not supported in
compile-time constant evaluation)
#KT-3571 Fixed
2014-11-27 20:38:17 +03:00
Evgeny Gerashchenko
8842bb574c
KT-5397 Simplify text of DeMorgan law conversion intentions
...
#KT-5397
2014-07-10 15:05:18 +04:00
Evgeny Gerashchenko
fda7aeecfb
Simplified CodeTransformationTest. Only one doTest method remains, intention class is moved to test data. Merged other intention tests (SpecifyTypeExplicitlyTest, ConvertToBlock/ExpressionBodyTest) into this one.
2014-07-10 15:05:17 +04:00
Ross Hanson
4de6960443
KT-4568 Bug Fix: Refactored the convertNegatedExpressionWithDemorgansLaw intention to better handle longer and more complex expressions. Fixed bug and added appropriate test cases as well.
2014-04-25 16:59:49 +04:00
Zalim Bashorov
b43958f4b3
Fixed tests after adding error checking for intention tests.
2014-04-01 20:49:24 +04:00
Ross Hanson
55e888604e
KT-4568: Created the ConvertNegatedExpressionWithDemorgansLaw intention. Converts an expression of the form !(a &&,|| b) to its expanded equivalent under DeMorgan's law.
2014-03-25 10:25:47 +04:00