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

Function TEST

test/arrayio.cpp:120–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120TEST(ArrayIO, Save) {
121 array a = constant(1, 10, 10);
122 array b = constant(2, 10, 10);
123
124 saveArray("a", a, "arr.af");
125 saveArray("b", b, "arr.af", true);
126
127 array aread = readArray("arr.af", "a");
128 array bread = readArray("arr.af", "b");
129
130 ASSERT_ARRAYS_EQ(a, aread);
131 ASSERT_ARRAYS_EQ(b, bread);
132}

Callers

nothing calls this directly

Calls 3

constantFunction · 0.85
saveArrayFunction · 0.85
readArrayFunction · 0.85

Tested by

no test coverage detected