Skip to content

Commit c99b157

Browse files
committed
Simplified tests [skip ci]
1 parent 1ba7cef commit c99b157

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

test/halfvec_test.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ static void test_constructor_span() {
1818

1919
static void test_as_vector() {
2020
auto vec = HalfVector({1, 2, 3});
21-
auto& half_vec = vec.as_vector();
22-
assert_equal(half_vec == std::vector<pgvector::Half>{1, 2, 3}, true);
21+
assert_equal(vec.as_vector() == std::vector<pgvector::Half>{1, 2, 3}, true);
2322
}
2423

2524
void test_halfvec() {

test/vector_test.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ static void test_constructor_span() {
1818

1919
static void test_as_vector() {
2020
auto vec = Vector({1, 2, 3});
21-
auto& float_vec = vec.as_vector();
22-
assert_equal(float_vec == std::vector<float>{1, 2, 3}, true);
21+
assert_equal(vec.as_vector() == std::vector<float>{1, 2, 3}, true);
2322
}
2423

2524
void test_vector() {

0 commit comments

Comments
 (0)