Test for product

This commit is contained in:
Alexander Nozik 2018-04-29 09:29:54 +03:00
parent 4c25fa0395
commit d22a4ed657

View File

@ -10,6 +10,12 @@ class RealNDFieldTest {
@Test
fun testSum() {
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)
}
}