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

Function TEST

test/binary.cpp:813–826  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

811}
812
813TEST(Broadcast, VectorMatrix2d) {
814 dim_t s = 10;
815 af::array A = range(dim4(s, 3), 1);
816 af::array B = -range(dim4(3));
817
818 try {
819 A + B;
820 FAIL();
821 } catch (af::exception &e) { ASSERT_EQ(e.err(), AF_ERR_SIZE); }
822 try {
823 B + A;
824 FAIL();
825 } catch (af::exception &e) { ASSERT_EQ(e.err(), AF_ERR_SIZE); }
826}
827
828TEST(Broadcast, VectorMatrix3d) {
829 dim_t s = 10;

Callers 1

BINARY_TESTS_NEARFunction · 0.70

Calls 5

testAllBroadcastFunction · 0.85
constantFunction · 0.85
seqClass · 0.85
rangeFunction · 0.50
dim4Class · 0.50

Tested by

no test coverage detected