message: Lite: Slice Op New test cases added to improve coverage
diff: @@ -243,6 +243,28 @@ TEST_P(SliceOpTest, SliceString) {
  "2,0,0,0", "2,0,1,0", "2,0,2,0"}));
  }
  +TEST(SliceOpTest, SliceInt64) {
  + SliceOpModel<int64_t, int32_t> m({3, 2, 3, 1}, {4}, {4}, TensorType_INT32,
  + TensorType_INT64);
  + m.SetInput({1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6});
  + m.SetBegin({1, 0, 0, 0});
  + m.SetSize({2, 1, -1, 1});
  + m.Invoke();
  + EXPECT_THAT(m.GetOutputShape(), ElementsAreArray({2, 1, 3, 1}));
  + EXPECT_THAT(m.GetOutput(), ElementsAreArray({3, 3, 3, 5, 5, 5}));
  +}
  +
  +TEST(SliceOpTest, SliceBool) {
  + SliceOpModel<bool, int32_t> m({2, 3}, {2}, {2}, TensorType_INT32,
  + TensorType_BOOL);
  + m.SetInput({true, false, true, false, true, true});
  + m.SetBegin({1, 0});
  + m.SetSize({-1, 2});
  + m.Invoke();
  + EXPECT_THAT(m.GetOutputShape(), ElementsAreArray({1, 2}));
  + EXPECT_THAT(m.GetOutput(), ElementsAreArray({true, true}));
  +}
  +
  INSTANTIATE_TEST_SUITE_P(SliceOpTest, SliceOpTest,
  ::testing::Values(TestType::kConst,
  TestType::kDynamic));
  