Reuse intention test data in inspection tests

This commit is contained in:
Alexey Sedunov
2014-04-08 14:20:44 +04:00
parent 32a2e63ae5
commit f5fb2ea0ab
10 changed files with 183 additions and 33 deletions
@@ -1,10 +0,0 @@
<problems>
<problem>
<file>main.kt</file>
<line>3</line>
<module>light_idea_test_case</module>
<entry_point TYPE="file" FQNAME="temp:///src/src/main.kt" />
<problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Explicit 'get'</problem_class>
<description>Replace 'get' call with index operator</description>
</problem>
</problems>
@@ -1 +0,0 @@
// INSPECTION_CLASS: org.jetbrains.jet.plugin.inspections.ExplicitGetInspection
@@ -1,4 +0,0 @@
fun foo() {
val a = Array<Int>(10) { it }
println(a.get(5))
}