Fix some tests

This commit is contained in:
Dmitry Gridin
2019-06-06 17:36:39 +07:00
parent 4f8c0653c5
commit 8eb11d9d3d
4 changed files with 29 additions and 0 deletions
@@ -98,4 +98,13 @@
<problem_class severity="INFO" attribute_key="INFO_ATTRIBUTES">If-Then foldable to '?:'</problem_class>
<description>If-Then foldable to '?:'</description>
</problem>
<problem>
<file>longLine.kt</file>
<line>8</line>
<module>light_idea_test_case</module>
<package>longLine</package>
<entry_point TYPE="method" FQNAME="longLine.LongLineKt void main()" />
<problem_class severity="INFO" attribute_key="INFO_ATTRIBUTES">If-Then foldable to '?:'</problem_class>
<description>If-Then foldable to '?:'</description>
</problem>
</problems>
@@ -1,5 +1,6 @@
// PROBLEM: none
// WITH_RUNTIME
// DISABLE-ERRORS
fun main(args: Array<String>) {
val t: String? = "abc"
if (t != null<caret>) t else throw KotlinNullPointerException()
@@ -1,5 +1,6 @@
// PROBLEM: none
// WITH_RUNTIME
// DISABLE-ERRORS
fun main(args: Array<String>) {
val t: String? = "abc"
if (t == null<caret>) throw NullPointerException() else t
@@ -145,4 +145,22 @@
<problem_class severity="INFO" attribute_key="INFO_ATTRIBUTES">If-Then foldable to '?.'</problem_class>
<description>Foldable if-then</description>
</problem>
<problem>
<file>resultCall.kt</file>
<line>6</line>
<module>light_idea_test_case</module>
<package>resultCall</package>
<entry_point TYPE="field" FQNAME="resultCall.ResultCallKt result" />
<problem_class severity="INFO" attribute_key="INFO_ATTRIBUTES">If-Then foldable to '?.'</problem_class>
<description>Foldable if-then</description>
</problem>
<problem>
<file>noStdResultInCallChain.kt</file>
<line>7</line>
<module>light_idea_test_case</module>
<package>noStdResultInCallChain</package>
<entry_point TYPE="field" FQNAME="noStdResultInCallChain.NoStdResultInCallChainKt result" />
<problem_class severity="INFO" attribute_key="INFO_ATTRIBUTES">If-Then foldable to '?.'</problem_class>
<description>Foldable if-then</description>
</problem>
</problems>