Fix unit tests for orx-gradient-descent

This commit is contained in:
Edwin Jakobs
2019-09-24 18:34:45 +02:00
parent 3231f535a4
commit c49f14fd54
3 changed files with 4 additions and 10 deletions

View File

@@ -1,10 +1,10 @@
import org.amshove.kluent.`should be equal to`
import org.amshove.kluent.`should equal`
import org.openrndr.extra.gradientdescent.gradient
import org.spekframework.spek2.Spek
import org.spekframework.spek2.style.specification.describe
object TestGradient : Spek({
describe("a simple 1d function") {
fun parabola(x: DoubleArray): Double {
return x[0] * x[0]