[Scripting] Fix Bintray-dependent test

This commit is contained in:
Ilya Muradyan
2021-03-29 16:43:43 +03:00
parent d40ada5d07
commit 92b99b140e
3 changed files with 7 additions and 10 deletions
@@ -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
1 name surname
2 John Smith
@@ -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>")