Exemple #1
0
inline void swap(lsh_vector& l, lsh_vector& r) {  // NOLINT
  l.swap(r);
}
TEST(lsh_vector, slice) {
  const lsh_vector lv = make_vector("1 2 3 4 5 6 7 8");
  const lsh_vector expect = make_vector("3 4 5 6");
  EXPECT_EQ(expect, lv.slice(2, 4));
}
TEST(lsh_vector, cut) {
  const lsh_vector lv = make_vector("1 2 3 4 5 6 7 8");
  const lsh_vector expect = make_vector("1 2 7 8");
  EXPECT_EQ(expect, lv.cut(2, 4));
}
Exemple #4
0
inline
void swap(lsh_vector& l, lsh_vector& r) {
  l.swap(r);
}