Intention to transform an if an AssertionError throw into an assert
This commit is contained in:
+3
@@ -0,0 +1,3 @@
|
||||
fun foo() {
|
||||
<spot>assert(!true, "text")</spot>
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
fun foo() {
|
||||
<spot>if (true) {
|
||||
throw AssertionError("text")
|
||||
}</spot>
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
<html>
|
||||
<body>
|
||||
This intention converts an if statement that throws an AssertionError exception into an assertion
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user