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

Function TEST

test/fft.cpp:49–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47using std::vector;
48
49TEST(fft, Invalid_Type) {
50 vector<char> in(100, 1);
51
52 af_array inArray = 0;
53 af_array outArray = 0;
54
55 dim4 dims(5 * 5 * 2 * 2);
56 ASSERT_SUCCESS(af_create_array(&inArray, &(in.front()), dims.ndims(),
57 dims.get(),
58 (af_dtype)dtype_traits<char>::af_type));
59
60 ASSERT_EQ(AF_ERR_TYPE, af_fft(&outArray, inArray, 1.0, 0));
61 ASSERT_SUCCESS(af_release_array(inArray));
62}
63
64TEST(fft2, Invalid_Array) {
65 vector<float> in(100, 1);

Callers 1

fft.cppFile · 0.70

Calls 9

af_create_arrayFunction · 0.50
af_fftFunction · 0.50
af_release_arrayFunction · 0.50
af_fft2Function · 0.50
af_fft3Function · 0.50
af_ifft2Function · 0.50
af_ifft3Function · 0.50
ndimsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected