Test for product
This commit is contained in:
parent
4c25fa0395
commit
d22a4ed657
@ -10,6 +10,12 @@ class RealNDFieldTest {
|
|||||||
@Test
|
@Test
|
||||||
fun testSum() {
|
fun testSum() {
|
||||||
val sum = array1 + array2
|
val sum = array1 + array2
|
||||||
assertEquals(4.0, sum[2, 2].value, 0.1)
|
assertEquals(4.0, sum[2, 2].toDouble(), 0.1)
|
||||||
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
fun testProduct(){
|
||||||
|
val product = array1*array2
|
||||||
|
assertEquals(0.0, product[2, 2].toDouble(), 0.1)
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user