Add content check to be consistent.

PiperOrigin-RevId: 327746763
Change-Id: I6e2de92569680836a5f61d60534ff364c425c625
This commit is contained in:
Renjie Liu 2020-08-20 20:25:06 -07:00 committed by TensorFlower Gardener
parent 89cbc0882f
commit cb0e3c6e6d

View File

@ -119,6 +119,7 @@ TEST(RangeOpModel, EmptyOutput) {
model.PopulateTensor<int32_t>(model.delta(), {1});
model.Invoke();
EXPECT_THAT(model.GetOutputShape(), ElementsAre(0));
EXPECT_THAT(model.GetOutput(), ElementsAre());
}
} // namespace