Add test documenting a minor issue introduced in previous commit

This commit is contained in:
Pavel V. Talanov
2014-07-16 21:13:47 +04:00
parent 966da0b03f
commit 0462a018c5
3 changed files with 21 additions and 0 deletions
@@ -0,0 +1,7 @@
//TODO: should not shorten references here
fun main(args: Array<String>) {
asse<caret>rt(false, "mess": kotlin.String)
}
// WITH_RUNTIME
@@ -0,0 +1,9 @@
//TODO: should not shorten references here
fun main(args: Array<String>) {
if (!false) {
throw AssertionError("mess": String)
}
}
// WITH_RUNTIME
@@ -2149,6 +2149,11 @@ public class IntentionTestGenerated extends AbstractIntentionTest {
doTest("idea/testData/intentions/convertAssertToIf/booleanConditionWithVariables.kt");
}
@TestMetadata("doNotShortenReferenceInsideMessage.kt")
public void testDoNotShortenReferenceInsideMessage() throws Exception {
doTest("idea/testData/intentions/convertAssertToIf/doNotShortenReferenceInsideMessage.kt");
}
@TestMetadata("dotQualifiedCall.kt")
public void testDotQualifiedCall() throws Exception {
doTest("idea/testData/intentions/convertAssertToIf/dotQualifiedCall.kt");