aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/kernels/gather_op_test.cc
diff options
context:
space:
mode:
authorGravatar Vijay Vasudevan <vrv@google.com>2016-02-25 10:55:21 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-02-25 11:16:08 -0800
commit86e93febaa2f349f2fbf733d6895a69e87ec578e (patch)
tree37613c378b966989bc8d4b8327ef1f94b298de04 /tensorflow/core/kernels/gather_op_test.cc
parentd1aed6505a7703ca9f596d8d415257fd238a62c6 (diff)
TensorFlow: Fix scatter_op_test now that StringPiece::contains is fixed.
Change: 115580211
Diffstat (limited to 'tensorflow/core/kernels/gather_op_test.cc')
-rw-r--r--tensorflow/core/kernels/gather_op_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/core/kernels/gather_op_test.cc b/tensorflow/core/kernels/gather_op_test.cc
index 7417091b49..af8bfc432f 100644
--- a/tensorflow/core/kernels/gather_op_test.cc
+++ b/tensorflow/core/kernels/gather_op_test.cc
@@ -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;
}