Tests has been added

This commit is contained in:
Sergey Lukjanov
2012-06-18 18:47:32 +04:00
parent 3e188e2f0b
commit a4584e96d7
9 changed files with 29 additions and 5 deletions
@@ -0,0 +1,4 @@
// "Replace with dot call" "true"
fun test(value : Int) : Int {
value<caret>
}
@@ -0,0 +1,4 @@
// "Replace with dot call" "true"
fun test(value : String) : Int {
return value<caret>.length()
}
@@ -1,4 +0,0 @@
// "Replace with safe call" "true"
fun foo(a: Int?) {
a?.plus(1)
}
@@ -0,0 +1,4 @@
// "Replace with safe (?.) call" "true"
fun foo(a: Int?) {
a?.plus(1)
}
@@ -0,0 +1,4 @@
// "Replace with non-null asserted (!!.) call" "true"
fun foo(a: Int?) {
a!!.plus(1)
}
@@ -0,0 +1,4 @@
// "Replace with dot call" "true"
fun test(value : Int) : Int {
value<caret>!!
}
@@ -0,0 +1,4 @@
// "Replace with dot call" "true"
fun test(value : String) : Int {
return value<caret>!!.length()
}
@@ -1,4 +1,4 @@
// "Replace with safe call" "true"
// "Replace with safe (?.) call" "true"
fun foo(a: Int?) {
a<caret>.plus(1)
}
@@ -0,0 +1,4 @@
// "Replace with non-null asserted (!!.) call" "true"
fun foo(a: Int?) {
a<caret>.plus(1)
}