Added Spek2 testing

This commit is contained in:
Edwin Jakobs
2019-08-14 16:12:26 +02:00
parent e2b59059dc
commit 3c162f30d4
2 changed files with 33 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
import org.openrndr.extra.noise.fastFloor
import org.spekframework.spek2.Spek
import org.spekframework.spek2.style.specification.describe
import kotlin.test.assertEquals
object TestMathUtils : Spek({
describe("Fast floor") {
it("it is corrrect for 0.0") {
assertEquals(0, 0.0.fastFloor())
}
}
})