| 150 | |
| 151 | template<typename T> |
| 152 | void randuArgsTest() { |
| 153 | SUPPORTED_TYPE_CHECK(T); |
| 154 | |
| 155 | dim_t ndims = 4; |
| 156 | dim_t dims[] = {1, 2, 3, 0}; |
| 157 | af_array outArray = 0; |
| 158 | ASSERT_EQ(AF_ERR_SIZE, af_randu(&outArray, ndims, dims, |
| 159 | (af_dtype)dtype_traits<char>::af_type)); |
| 160 | ASSERT_EQ(af_sync(-1), AF_SUCCESS); |
| 161 | if (outArray != 0) af_release_array(outArray); |
| 162 | } |
| 163 | |
| 164 | TYPED_TEST(Random, InvalidArgs) { randuArgsTest<TypeParam>(); } |
| 165 |
nothing calls this directly
no test coverage detected