Skip to content

Commit 7f3a6a2

Browse files
committed
Simplify ASSERT_INDEX() macro in svs_test
1 parent 13552f8 commit 7f3a6a2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/unit/test_svs.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@
88

99
#define ASSERT_INDEX(index) \
1010
if (index == nullptr) { \
11-
const auto quantBits = TypeParam::get_quant_bits(); \
12-
if (quantBits != VecSimSvsQuant_NONE && !svs_details::isSVSLVQModeSupported(quantBits)) { \
13-
GTEST_SKIP() << "SVS LVQ is not supported."; \
14-
} else { \
11+
if (svs_details::isSVSLVQModeSupported(TypeParam::get_quant_bits())) { \
1512
GTEST_FAIL() << "Failed to create SVS index"; \
13+
} else { \
14+
GTEST_SKIP() << "SVS LVQ is not supported."; \
1615
} \
1716
}
1817

0 commit comments

Comments
 (0)