Basic tests
| 27 | |
| 28 | // Basic tests |
| 29 | TEST(TensorSliceTest, Basic) { |
| 30 | { |
| 31 | // Repeatedly setting FullSlice should work. |
| 32 | TensorSlice s(3); |
| 33 | EXPECT_EQ("-:-:-", s.DebugString()); |
| 34 | EXPECT_TRUE(s.IsFull()); |
| 35 | |
| 36 | s.SetFullSlice(4); |
| 37 | EXPECT_EQ("-:-:-:-", s.DebugString()); |
| 38 | EXPECT_TRUE(s.IsFull()); |
| 39 | } |
| 40 | } |
| 41 | |
| 42 | // Testing for serialization and parsing for the string format of slices. |
| 43 | TEST(TensorSliceTest, Serialization) { |
nothing calls this directly
no test coverage detected