[PowerAssert] Add codegen tests
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
the world is broken
|
||||
check(1 == 2) { "the world is broken" }
|
||||
|
|
||||
false
|
||||
@@ -0,0 +1,5 @@
|
||||
// FUNCTION: kotlin.check
|
||||
|
||||
fun box() = expectThrowableMessage {
|
||||
check(1 == 2) { "the world is broken" }
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
Assertion failed
|
||||
@@ -0,0 +1,5 @@
|
||||
// FUNCTION: kotlin.require
|
||||
|
||||
fun box() = expectThrowableMessage {
|
||||
assert(false)
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
Not equal
|
||||
assert(1 == 2, lambda)
|
||||
|
|
||||
false
|
||||
@@ -0,0 +1,4 @@
|
||||
fun box() = expectThrowableMessage {
|
||||
val lambda = { "Not equal" }
|
||||
assert(1 == 2, lambda)
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
Not equal
|
||||
assert(1 == 2) { "Not equal" }
|
||||
|
|
||||
false
|
||||
@@ -0,0 +1,3 @@
|
||||
fun box() = expectThrowableMessage {
|
||||
assert(1 == 2) { "Not equal" }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
Assertion failed
|
||||
assert(hello.length == "World".substring(1, 4).length)
|
||||
| | | | |
|
||||
| | | | 3
|
||||
| | | orl
|
||||
| | false
|
||||
| 5
|
||||
Hello
|
||||
@@ -0,0 +1,4 @@
|
||||
fun box() = expectThrowableMessage {
|
||||
val hello = "Hello"
|
||||
assert(hello.length == "World".substring(1, 4).length)
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
Assertion failed
|
||||
assert(
|
||||
text
|
||||
|
|
||||
Hello
|
||||
== null ||
|
||||
|
|
||||
false
|
||||
(
|
||||
text.length == 5 &&
|
||||
| | |
|
||||
| | true
|
||||
| 5
|
||||
Hello
|
||||
text.toLowerCase() == text
|
||||
| | | |
|
||||
| | | Hello
|
||||
| | false
|
||||
| hello
|
||||
Hello
|
||||
)
|
||||
)
|
||||
@@ -0,0 +1,11 @@
|
||||
fun box() = expectThrowableMessage {
|
||||
val text: String? = "Hello"
|
||||
assert(
|
||||
text
|
||||
== null ||
|
||||
(
|
||||
text.length == 5 &&
|
||||
text.toLowerCase() == text
|
||||
)
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
the world is broken
|
||||
require(1 == 2) { "the world is broken" }
|
||||
|
|
||||
false
|
||||
@@ -0,0 +1,5 @@
|
||||
// FUNCTION: kotlin.require
|
||||
|
||||
fun box() = expectThrowableMessage {
|
||||
require(1 == 2) { "the world is broken" }
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
Assertion failed
|
||||
assert(hello.reversed() == emptyList<String>())
|
||||
| | | |
|
||||
| | | []
|
||||
| | false
|
||||
| [World, Hello]
|
||||
[Hello, World]
|
||||
@@ -0,0 +1,4 @@
|
||||
fun box() = expectThrowableMessage {
|
||||
val hello = listOf("Hello", "World")
|
||||
assert(hello.reversed() == emptyList<String>())
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
Assertion failed
|
||||
assert(1 + 1 == 4)
|
||||
| |
|
||||
| false
|
||||
2
|
||||
@@ -0,0 +1,3 @@
|
||||
fun box() = expectThrowableMessage {
|
||||
assert(1 + 1 == 4)
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
Assertion failed
|
||||
assert(2 / 1 == 4)
|
||||
| |
|
||||
| false
|
||||
2
|
||||
@@ -0,0 +1,3 @@
|
||||
fun box() = expectThrowableMessage {
|
||||
assert(2 / 1 == 4)
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
Assertion failed
|
||||
assert(1 * 2 == 4)
|
||||
| |
|
||||
| false
|
||||
2
|
||||
@@ -0,0 +1,3 @@
|
||||
fun box() = expectThrowableMessage {
|
||||
assert(1 * 2 == 4)
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
Assertion failed
|
||||
assert(i-- == 4)
|
||||
| |
|
||||
| false
|
||||
3
|
||||
@@ -0,0 +1,4 @@
|
||||
fun box() = expectThrowableMessage {
|
||||
var i = 3
|
||||
assert(i-- == 4)
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
Assertion failed
|
||||
assert(i++ == 4)
|
||||
| |
|
||||
| false
|
||||
1
|
||||
@@ -0,0 +1,4 @@
|
||||
fun box() = expectThrowableMessage {
|
||||
var i = 1
|
||||
assert(i++ == 4)
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
Assertion failed
|
||||
assert(--i == 4)
|
||||
| |
|
||||
| false
|
||||
2
|
||||
@@ -0,0 +1,4 @@
|
||||
fun box() = expectThrowableMessage {
|
||||
var i = 3
|
||||
assert(--i == 4)
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
Assertion failed
|
||||
assert(++i == 4)
|
||||
| |
|
||||
| false
|
||||
2
|
||||
@@ -0,0 +1,4 @@
|
||||
fun box() = expectThrowableMessage {
|
||||
var i = 1
|
||||
assert(++i == 4)
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
Assertion failed
|
||||
assert(3 - 1 == 4)
|
||||
| |
|
||||
| false
|
||||
2
|
||||
@@ -0,0 +1,3 @@
|
||||
fun box() = expectThrowableMessage {
|
||||
assert(3 - 1 == 4)
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
Assertion failed
|
||||
assert(text != null && text.length == 5 && text.toLowerCase() == text)
|
||||
| | | | | | | | |
|
||||
| | | | | | | | Hello
|
||||
| | | | | | | false
|
||||
| | | | | | hello
|
||||
| | | | | Hello
|
||||
| | | | true
|
||||
| | | 5
|
||||
| | Hello
|
||||
| true
|
||||
Hello
|
||||
@@ -0,0 +1,4 @@
|
||||
fun box() = expectThrowableMessage {
|
||||
val text: String? = "Hello"
|
||||
assert(text != null && text.length == 5 && text.toLowerCase() == text)
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
Assertion failed
|
||||
assert(text != null && (text.length == 1 || text.toLowerCase() == text))
|
||||
| | | | | | | | |
|
||||
| | | | | | | | Hello
|
||||
| | | | | | | false
|
||||
| | | | | | hello
|
||||
| | | | | Hello
|
||||
| | | | false
|
||||
| | | 5
|
||||
| | Hello
|
||||
| true
|
||||
Hello
|
||||
@@ -0,0 +1,4 @@
|
||||
fun box() = expectThrowableMessage {
|
||||
val text: String? = "Hello"
|
||||
assert(text != null && (text.length == 1 || text.toLowerCase() == text))
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
Assertion failed
|
||||
assert((text.length == 1 || text.toLowerCase() == text) && text.length == 1)
|
||||
| | | | | | |
|
||||
| | | | | | Hello
|
||||
| | | | | false
|
||||
| | | | hello
|
||||
| | | Hello
|
||||
| | false
|
||||
| 5
|
||||
Hello
|
||||
@@ -0,0 +1,4 @@
|
||||
fun box() = expectThrowableMessage {
|
||||
val text = "Hello"
|
||||
assert((text.length == 1 || text.toLowerCase() == text) && text.length == 1)
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
Assertion failed
|
||||
assert(text == null || (text.length == 5 && text.toLowerCase() == text))
|
||||
| | | | | | | | |
|
||||
| | | | | | | | Hello
|
||||
| | | | | | | false
|
||||
| | | | | | hello
|
||||
| | | | | Hello
|
||||
| | | | true
|
||||
| | | 5
|
||||
| | Hello
|
||||
| false
|
||||
Hello
|
||||
@@ -0,0 +1,4 @@
|
||||
fun box() = expectThrowableMessage {
|
||||
val text: String? = "Hello"
|
||||
assert(text == null || (text.length == 5 && text.toLowerCase() == text))
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
Assertion failed
|
||||
assert((text.length == 5 && text.toLowerCase() == text) || text.length == 1)
|
||||
| | | | | | | | | |
|
||||
| | | | | | | | | false
|
||||
| | | | | | | | 5
|
||||
| | | | | | | Hello
|
||||
| | | | | | Hello
|
||||
| | | | | false
|
||||
| | | | hello
|
||||
| | | Hello
|
||||
| | true
|
||||
| 5
|
||||
Hello
|
||||
@@ -0,0 +1,4 @@
|
||||
fun box() = expectThrowableMessage {
|
||||
val text = "Hello"
|
||||
assert((text.length == 5 && text.toLowerCase() == text) || text.length == 1)
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
Assertion failed
|
||||
assert(text == null || text.length == 1 || text.toLowerCase() == text)
|
||||
| | | | | | | | |
|
||||
| | | | | | | | Hello
|
||||
| | | | | | | false
|
||||
| | | | | | hello
|
||||
| | | | | Hello
|
||||
| | | | false
|
||||
| | | 5
|
||||
| | Hello
|
||||
| false
|
||||
Hello
|
||||
@@ -0,0 +1,4 @@
|
||||
fun box() = expectThrowableMessage {
|
||||
val text: String? = "Hello"
|
||||
assert(text == null || text.length == 1 || text.toLowerCase() == text)
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
Assertion failed
|
||||
assert(text != null && text.length == 1)
|
||||
| |
|
||||
| false
|
||||
null
|
||||
@@ -0,0 +1,4 @@
|
||||
fun box() = expectThrowableMessage {
|
||||
val text: String? = null
|
||||
assert(text != null && text.length == 1)
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
Assertion failed
|
||||
assert(null is String)
|
||||
|
|
||||
false
|
||||
@@ -0,0 +1,3 @@
|
||||
fun box() = expectThrowableMessage {
|
||||
assert(null is String)
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
Assertion failed
|
||||
assert("Hello, world!" !is String)
|
||||
|
|
||||
false
|
||||
@@ -0,0 +1,3 @@
|
||||
fun box() = expectThrowableMessage {
|
||||
assert("Hello, world!" !is String)
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
Assertion failed
|
||||
assert(greeting is String && greeting.length == 2)
|
||||
| | | | |
|
||||
| | | | false
|
||||
| | | 5
|
||||
| | hello
|
||||
| true
|
||||
hello
|
||||
@@ -0,0 +1,4 @@
|
||||
fun box() = expectThrowableMessage {
|
||||
val greeting: Any = "hello"
|
||||
assert(greeting is String && greeting.length == 2)
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
sum=6
|
||||
dbg(operation, 1 + 2 + 3)
|
||||
| | |
|
||||
| | 6
|
||||
| 3
|
||||
sum
|
||||
@@ -0,0 +1,9 @@
|
||||
// FUNCTION: dbg
|
||||
|
||||
fun box() = expectThrowableMessage {
|
||||
val operation = "sum"
|
||||
dbg(operation, 1 + 2 + 3)
|
||||
}
|
||||
|
||||
fun <T> dbg(key: Any, value: T): T = value
|
||||
fun <T> dbg(key: Any, value: T, msg: String): T = throw RuntimeException(key.toString() + "=" + value + "\n" + msg)
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
false=true
|
||||
dbg(
|
||||
key = greeting != null && greeting.length == 5,
|
||||
| |
|
||||
| false
|
||||
null
|
||||
value = name == null || name.length == 5
|
||||
| |
|
||||
| true
|
||||
null
|
||||
)
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// FUNCTION: dbg
|
||||
|
||||
fun box() = expectThrowableMessage {
|
||||
val greeting: String? = null
|
||||
val name: String? = null
|
||||
dbg(
|
||||
key = greeting != null && greeting.length == 5,
|
||||
value = name == null || name.length == 5
|
||||
)
|
||||
}
|
||||
|
||||
fun <T> dbg(key: Any, value: T): T = value
|
||||
fun <T> dbg(key: Any, value: T, msg: String): T = throw RuntimeException(key.toString() + "=" + value + "\n" + msg)
|
||||
@@ -0,0 +1,7 @@
|
||||
sum=6
|
||||
Message:
|
||||
dbg(operation, 1 + 2 + 3, "Message:")
|
||||
| | |
|
||||
| | 6
|
||||
| 3
|
||||
sum
|
||||
@@ -0,0 +1,9 @@
|
||||
// FUNCTION: dbg
|
||||
|
||||
fun box() = expectThrowableMessage {
|
||||
val operation = "sum"
|
||||
dbg(operation, 1 + 2 + 3, "Message:")
|
||||
}
|
||||
|
||||
fun <T> dbg(key: Any, value: T): T = value
|
||||
fun <T> dbg(key: Any, value: T, msg: String): T = throw RuntimeException(key.toString() + "=" + value + "\n" + msg)
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
false=true
|
||||
Message:
|
||||
dbg(
|
||||
key = greeting != null && greeting.length == 5,
|
||||
| |
|
||||
| false
|
||||
null
|
||||
value = name == null || name.length == 5,
|
||||
| |
|
||||
| true
|
||||
null
|
||||
msg = "Message:"
|
||||
)
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
// FUNCTION: dbg
|
||||
|
||||
fun box() = expectThrowableMessage {
|
||||
val greeting: String? = null
|
||||
val name: String? = null
|
||||
dbg(
|
||||
key = greeting != null && greeting.length == 5,
|
||||
value = name == null || name.length == 5,
|
||||
msg = "Message:"
|
||||
)
|
||||
}
|
||||
|
||||
fun <T> dbg(key: Any, value: T): T = value
|
||||
fun <T> dbg(key: Any, value: T, msg: String): T = throw RuntimeException(key.toString() + "=" + value + "\n" + msg)
|
||||
@@ -0,0 +1,4 @@
|
||||
dbg(1 + 2 + 3)
|
||||
| |
|
||||
| 6
|
||||
3
|
||||
@@ -0,0 +1,8 @@
|
||||
// FUNCTION: dbg
|
||||
|
||||
fun box() = expectThrowableMessage {
|
||||
dbg(1 + 2 + 3)
|
||||
}
|
||||
|
||||
fun <T> dbg(value: T): T = value
|
||||
fun <T> dbg(value: T, msg: String): T = throw RuntimeException(msg)
|
||||
@@ -0,0 +1,5 @@
|
||||
Message:
|
||||
dbg(1 + 2 + 3, "Message:")
|
||||
| |
|
||||
| 6
|
||||
3
|
||||
@@ -0,0 +1,8 @@
|
||||
// FUNCTION: dbg
|
||||
|
||||
fun box() = expectThrowableMessage {
|
||||
dbg(1 + 2 + 3, "Message:")
|
||||
}
|
||||
|
||||
fun <T> dbg(value: T): T = value
|
||||
fun <T> dbg(value: T, msg: String): T = throw RuntimeException(msg)
|
||||
@@ -0,0 +1,5 @@
|
||||
Wrapper(1 + 1) mustEqual (2 + 4)
|
||||
| | |
|
||||
| | 6
|
||||
| 2
|
||||
Wrapper
|
||||
@@ -0,0 +1,7 @@
|
||||
// FUNCTION: infix.dispatch.Wrapper.mustEqual
|
||||
|
||||
import infix.dispatch.*
|
||||
|
||||
fun box() = expectThrowableMessage {
|
||||
Wrapper(1 + 1) mustEqual (2 + 4)
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
Wrapper(1 + 1) mustEqual 6
|
||||
| |
|
||||
| 2
|
||||
Wrapper
|
||||
@@ -0,0 +1,7 @@
|
||||
// FUNCTION: infix.dispatch.Wrapper.mustEqual
|
||||
|
||||
import infix.dispatch.*
|
||||
|
||||
fun box() = expectThrowableMessage {
|
||||
Wrapper(1 + 1) mustEqual 6
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
Wrapper(1) mustEqual (2 + 4)
|
||||
| |
|
||||
| 6
|
||||
Wrapper
|
||||
@@ -0,0 +1,7 @@
|
||||
// FUNCTION: infix.dispatch.Wrapper.mustEqual
|
||||
|
||||
import infix.dispatch.*
|
||||
|
||||
fun box() = expectThrowableMessage {
|
||||
Wrapper(1) mustEqual (2 + 4)
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
Wrapper(2) mustEqual 6
|
||||
|
|
||||
Wrapper
|
||||
@@ -0,0 +1,7 @@
|
||||
// FUNCTION: infix.dispatch.Wrapper.mustEqual
|
||||
|
||||
import infix.dispatch.*
|
||||
|
||||
fun box() = expectThrowableMessage {
|
||||
Wrapper(2) mustEqual 6
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
Wrapper(1 + 1).mustEqual(2 + 4)
|
||||
| | |
|
||||
| | 6
|
||||
| 2
|
||||
Wrapper
|
||||
@@ -0,0 +1,7 @@
|
||||
// FUNCTION: infix.dispatch.Wrapper.mustEqual
|
||||
|
||||
import infix.dispatch.*
|
||||
|
||||
fun box() = expectThrowableMessage {
|
||||
Wrapper(1 + 1).mustEqual(2 + 4)
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
Wrapper(1 + 1).mustEqual(6)
|
||||
| |
|
||||
| 2
|
||||
Wrapper
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// FUNCTION: infix.dispatch.Wrapper.mustEqual
|
||||
|
||||
import infix.dispatch.*
|
||||
|
||||
fun box() = expectThrowableMessage {
|
||||
Wrapper(1 + 1).mustEqual(6)
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
Wrapper(1).mustEqual(2 + 4)
|
||||
| |
|
||||
| 6
|
||||
Wrapper
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// FUNCTION: infix.dispatch.Wrapper.mustEqual
|
||||
|
||||
import infix.dispatch.*
|
||||
|
||||
fun box() = expectThrowableMessage {
|
||||
Wrapper(1).mustEqual(2 + 4)
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
Wrapper(2).mustEqual(6)
|
||||
|
|
||||
Wrapper
|
||||
@@ -0,0 +1,7 @@
|
||||
// FUNCTION: infix.dispatch.Wrapper.mustEqual
|
||||
|
||||
import infix.dispatch.*
|
||||
|
||||
fun box() = expectThrowableMessage {
|
||||
Wrapper(2).mustEqual(6)
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
(1 + 1) mustEqual (2 + 4)
|
||||
| |
|
||||
| 6
|
||||
2
|
||||
@@ -0,0 +1,7 @@
|
||||
// FUNCTION: infix.extension.mustEqual
|
||||
|
||||
import infix.extension.*
|
||||
|
||||
fun box() = expectThrowableMessage {
|
||||
(1 + 1) mustEqual (2 + 4)
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
(1 + 1) mustEqual 6
|
||||
|
|
||||
2
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// FUNCTION: infix.extension.mustEqual
|
||||
|
||||
import infix.extension.*
|
||||
|
||||
fun box() = expectThrowableMessage {
|
||||
(1 + 1) mustEqual 6
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
1 mustEqual (2 + 4)
|
||||
|
|
||||
6
|
||||
@@ -0,0 +1,7 @@
|
||||
// FUNCTION: infix.extension.mustEqual
|
||||
|
||||
import infix.extension.*
|
||||
|
||||
fun box() = expectThrowableMessage {
|
||||
1 mustEqual (2 + 4)
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
Assertion failed
|
||||
@@ -0,0 +1,7 @@
|
||||
// FUNCTION: infix.extension.mustEqual
|
||||
|
||||
import infix.extension.*
|
||||
|
||||
fun box() = expectThrowableMessage {
|
||||
2 mustEqual 6
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
(1 + 1).mustEqual(2 + 4)
|
||||
| |
|
||||
| 6
|
||||
2
|
||||
@@ -0,0 +1,7 @@
|
||||
// FUNCTION: infix.extension.mustEqual
|
||||
|
||||
import infix.extension.*
|
||||
|
||||
fun box() = expectThrowableMessage {
|
||||
(1 + 1).mustEqual(2 + 4)
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
(1 + 1).mustEqual(6)
|
||||
|
|
||||
2
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// FUNCTION: infix.extension.mustEqual
|
||||
|
||||
import infix.extension.*
|
||||
|
||||
fun box() = expectThrowableMessage {
|
||||
(1 + 1).mustEqual(6)
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
1.mustEqual(2 + 4)
|
||||
|
|
||||
6
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// FUNCTION: infix.extension.mustEqual
|
||||
|
||||
import infix.extension.*
|
||||
|
||||
fun box() = expectThrowableMessage {
|
||||
1.mustEqual(2 + 4)
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
Assertion failed
|
||||
@@ -0,0 +1,7 @@
|
||||
// FUNCTION: infix.extension.mustEqual
|
||||
|
||||
import infix.extension.*
|
||||
|
||||
fun box() = expectThrowableMessage {
|
||||
2.mustEqual(6)
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
Assertion failed
|
||||
assert("Hello, World".matches("[A-Za-z]+".toRegex()))
|
||||
| |
|
||||
| [A-Za-z]+
|
||||
false
|
||||
@@ -0,0 +1,7 @@
|
||||
// IGNORE_BACKEND_K1: JVM_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR
|
||||
// Disabled because of KT-65640
|
||||
|
||||
fun box() = expectThrowableMessage {
|
||||
assert("Hello, World".matches("[A-Za-z]+".toRegex()))
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
Assertion failed
|
||||
assert("Hello, World" matches "[A-Za-z]+".toRegex())
|
||||
| |
|
||||
| [A-Za-z]+
|
||||
false
|
||||
@@ -0,0 +1,7 @@
|
||||
// IGNORE_BACKEND_K1: JVM_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR
|
||||
// Disabled because of KT-65640
|
||||
|
||||
fun box() = expectThrowableMessage {
|
||||
assert("Hello, World" matches "[A-Za-z]+".toRegex())
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user