[minor] fix scripting test on windows
This commit is contained in:
+2
-2
@@ -53,7 +53,7 @@ class ScriptingHostTest : TestCase() {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun testSimpleImport() {
|
fun testSimpleImport() {
|
||||||
val greeting = "Hello from helloWithVal script!\nHello from imported helloWithVal script!"
|
val greeting = listOf("Hello from helloWithVal script!", "Hello from imported helloWithVal script!")
|
||||||
val script = "println(\"Hello from imported \$helloScriptName script!\")"
|
val script = "println(\"Hello from imported \$helloScriptName script!\")"
|
||||||
val compilationConfiguration = createJvmCompilationConfigurationFromTemplate<SimpleScriptTemplate> {
|
val compilationConfiguration = createJvmCompilationConfigurationFromTemplate<SimpleScriptTemplate> {
|
||||||
refineConfiguration {
|
refineConfiguration {
|
||||||
@@ -71,7 +71,7 @@ class ScriptingHostTest : TestCase() {
|
|||||||
}
|
}
|
||||||
val output = captureOut {
|
val output = captureOut {
|
||||||
BasicJvmScriptingHost().eval(script.toScriptSource(), compilationConfiguration, null).throwOnFailure()
|
BasicJvmScriptingHost().eval(script.toScriptSource(), compilationConfiguration, null).throwOnFailure()
|
||||||
}
|
}.lines()
|
||||||
Assert.assertEquals(greeting, output)
|
Assert.assertEquals(greeting, output)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user