[Scripting] Fix Bintray-dependent test
This commit is contained in:
+2
-1
@@ -69,7 +69,8 @@ class MainKtsTest {
|
||||
|
||||
val resultValue = resOk.valueOrThrow().returnValue
|
||||
assertTrue(resultValue is ResultValue.Value) { "Result value should be of type Value" }
|
||||
assertEquals("John Smith", (resultValue as ResultValue.Value).value)
|
||||
val value = (resultValue as ResultValue.Value).value!!
|
||||
assertEquals("MimeTypedResult", value::class.simpleName)
|
||||
}
|
||||
|
||||
// @Test
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
name,surname
|
||||
John,Smith
|
||||
|
+5
-7
@@ -1,9 +1,7 @@
|
||||
@file:Repository("https://dl.bintray.com/holgerbrandl/mpicbg-scicomp")
|
||||
//Krangl depends on Klaxon transitively, that's why this repo is needed here
|
||||
@file:Repository("https://dl.bintray.com/cbeust/maven")
|
||||
@file:DependsOn("de.mpicbg.scicomp:krangl:0.13", options = arrayOf("scope=compile,runtime"))
|
||||
// kotlin-jupyter-lib has runtime dependency on kotlin-jupyter-api, so
|
||||
// we should be able to import symbols from there
|
||||
@file:DependsOn("org.jetbrains.kotlinx:kotlin-jupyter-lib:0.8.3.320", options = arrayOf("scope=compile,runtime"))
|
||||
|
||||
import krangl.*
|
||||
import org.jetbrains.kotlinx.jupyter.api.HTML
|
||||
|
||||
val df = DataFrame.readCSV("libraries/tools/kotlin-main-kts-test/testData/resolve-with-runtime.csv")
|
||||
df.head().rows.first().let { "${it["name"]} ${it["surname"]}" }
|
||||
HTML("<p>Paragraph</p>")
|
||||
|
||||
Reference in New Issue
Block a user