MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / randuArgsTest

Function randuArgsTest

test/random.cpp:152–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150
151template<typename T>
152void 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
164TYPED_TEST(Random, InvalidArgs) { randuArgsTest<TypeParam>(); }
165

Callers

nothing calls this directly

Calls 3

af_randuFunction · 0.50
af_syncFunction · 0.50
af_release_arrayFunction · 0.50

Tested by

no test coverage detected