TensorFlow: Fix scatter_op_test now that StringPiece::contains is fixed.

Change: 115580211
This commit is contained in:
Vijay Vasudevan 2016-02-25 10:55:21 -08:00 committed by TensorFlower Gardener
parent d1aed6505a
commit 86e93febaa
2 changed files with 4 additions and 4 deletions

View File

@ -113,8 +113,8 @@ TEST_F(GatherOpTest, Error_IndexOutOfRange) {
{0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14});
AddInputFromArray<int32>(TensorShape({4}), {0, 4, 99, 2});
Status s = RunOpKernel();
EXPECT_TRUE(StringPiece(s.ToString())
.contains("Index 99 at offset 2 in Tindices is out of range"))
EXPECT_TRUE(
StringPiece(s.ToString()).contains("indices[2] = 99 is not in [0, 5)"))
<< s;
}

View File

@ -170,8 +170,8 @@ TEST_F(ScatterUpdateOpTest, Error_IndexOutOfRange) {
AddInputFromArray<float>(TensorShape({3, 3}),
{100, 101, 102, 777, 778, 779, 10000, 10001, 10002});
Status s = RunOpKernel();
EXPECT_TRUE(StringPiece(s.ToString())
.contains("Index 99 at offset 2 in indices is out of range"))
EXPECT_TRUE(
StringPiece(s.ToString()).contains("indices[2] = 99 is not in [0, 5)"))
<< s;
}