| 98 | |
| 99 | template<typename T> |
| 100 | void randnTest(dim4 &dims) { |
| 101 | SUPPORTED_TYPE_CHECK(T); |
| 102 | |
| 103 | af_array outArray = 0; |
| 104 | ASSERT_SUCCESS(af_randn(&outArray, dims.ndims(), dims.get(), |
| 105 | (af_dtype)dtype_traits<T>::af_type)); |
| 106 | ASSERT_EQ(af_sync(-1), AF_SUCCESS); |
| 107 | if (outArray != 0) af_release_array(outArray); |
| 108 | } |
| 109 | |
| 110 | #define RAND(d0, d1, d2, d3) \ |
| 111 | TYPED_TEST(Random, randu_##d0##_##d1##_##d2##_##d3) { \ |
nothing calls this directly
no test coverage detected