| 35 | namespace arrow { |
| 36 | |
| 37 | void AssertCountNonZero(const Tensor& t, int64_t expected) { |
| 38 | ASSERT_OK_AND_ASSIGN(int64_t count, t.CountNonZero()); |
| 39 | ASSERT_EQ(count, expected); |
| 40 | } |
| 41 | |
| 42 | TEST(TestComputeRowMajorStrides, ZeroDimension) { |
| 43 | std::vector<int64_t> strides; |