[Interop][Test] Add test for allocation of vector variable

This commit is contained in:
Sergey Bogolepov
2020-01-30 11:09:21 +07:00
committed by Sergey Bogolepov
parent 24362a781c
commit a85bf0c5e4
@@ -29,5 +29,12 @@ fun main() {
assertEquals(49, sendV4I(vectorOf(1, 2, 3, 4)))
assertEquals(49, (sendV4F(vectorOf(1f, 2f, 3f, 4f)) + 0.00001).toInt())
memScoped {
val vector = alloc<KVector4i32Var>().also {
it.value = vectorOf(1, 2, 3, 4)
}
assertEquals(vector.value, vectorOf(1, 2, 3, 4))
}
}