Remove Spek add Kotest
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import org.amshove.kluent.shouldBeInRange
|
||||
import io.kotest.matchers.doubles.plusOrMinus
|
||||
import io.kotest.matchers.shouldBe
|
||||
import org.openrndr.math.Vector2
|
||||
|
||||
infix fun Vector2.`should be near`(other: Vector2) {
|
||||
x shouldBeInRange (other.x - 0.00001..other.x + 0.00001)
|
||||
y shouldBeInRange (other.y - 0.00001..other.y + 0.00001)
|
||||
x shouldBe other.x.plusOrMinus(1E-5)
|
||||
y shouldBe other.y.plusOrMinus(1E-5)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user