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

Function TEST

test/hsv_rgb.cpp:25–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23using std::vector;
24
25TEST(hsv_rgb, InvalidArray) {
26 vector<float> in(100, 1);
27
28 dim4 dims(100);
29 array input(dims, &(in.front()));
30
31 try {
32 array output = hsv2rgb(input);
33 ASSERT_EQ(true, false);
34 } catch (const exception & /* ex */) {
35 ASSERT_EQ(true, true);
36 return;
37 }
38}
39
40TEST(hsv2rgb, CPP) {
41 UNSUPPORTED_BACKEND(AF_BACKEND_ONEAPI);

Callers

nothing calls this directly

Calls 6

hostMethod · 0.80
hsv2rgbFunction · 0.50
rgb2hsvFunction · 0.50
tileFunction · 0.50
dimsMethod · 0.45
elementsMethod · 0.45

Tested by

no test coverage detected