Upgrade to OPENRNDR 0.4 snapshot
This commit is contained in:
18
orx-jvm/orx-olive/src/test/kotlin/TestLoadScript.kt
Normal file
18
orx-jvm/orx-olive/src/test/kotlin/TestLoadScript.kt
Normal file
@@ -0,0 +1,18 @@
|
||||
import org.amshove.kluent.`should be equal to`
|
||||
import org.openrndr.extra.olive.ScriptObjectLoader
|
||||
import org.openrndr.extra.olive.loadFromScript
|
||||
import org.spekframework.spek2.Spek
|
||||
import org.spekframework.spek2.style.specification.describe
|
||||
|
||||
object TestLoadScript : Spek({
|
||||
|
||||
describe("some script") {
|
||||
val loader = ScriptObjectLoader()
|
||||
|
||||
val number = loader.load<Int>("5")
|
||||
|
||||
it("should evaluate properly") {
|
||||
number `should be equal to` 5
|
||||
}
|
||||
}
|
||||
})
|
||||
15
orx-jvm/orx-olive/src/test/kotlin/TestLoadScriptKSH.kt
Normal file
15
orx-jvm/orx-olive/src/test/kotlin/TestLoadScriptKSH.kt
Normal file
@@ -0,0 +1,15 @@
|
||||
import org.amshove.kluent.`should be equal to`
|
||||
import org.openrndr.extra.olive.loadFromScriptContentsKSH
|
||||
import org.spekframework.spek2.Spek
|
||||
import org.spekframework.spek2.style.specification.describe
|
||||
|
||||
object TestLoadScriptKSH : Spek({
|
||||
|
||||
describe("some script") {
|
||||
val number = loadFromScriptContentsKSH<Int>("5")
|
||||
|
||||
it("should evaluate properly") {
|
||||
number `should be equal to` 5
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user