minor: improve tests failure reporting
This commit is contained in:
committed by
Space Team
parent
7db9f9c3ae
commit
30131e289f
+1
-1
@@ -97,7 +97,7 @@ class ScriptTest : TestCase() {
|
||||
return (extraInt(metadata) as Int) and JvmAnnotationNames.METADATA_SCRIPT_FLAG != 0
|
||||
}
|
||||
|
||||
val scriptClass = compileScript("metadata_flag.kts", StandardScriptDefinition)!!
|
||||
val scriptClass = compileScript("metadata_flag.kts", StandardScriptDefinition) ?: throw AssertionError("compilation failed")
|
||||
assertTrue("Script class SHOULD have the metadata flag set", scriptClass.isFlagSet())
|
||||
assertFalse(
|
||||
"Non-script class in a script should NOT have the metadata flag set",
|
||||
|
||||
Reference in New Issue
Block a user