Skip to content

Commit 2af873a

Browse files
committed
Improve: Longer equality check
1 parent 30d3e21 commit 2af873a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

scripts/test.cpp

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// #define SZ_USE_X86_AVX2 0
1515
// #define SZ_USE_X86_AVX512 0
1616
// #define SZ_USE_ARM_NEON 0
17-
// #define SZ_USE_ARM_SVE 0
17+
#define SZ_USE_ARM_SVE 0
1818
#define SZ_DEBUG 1 // Enforce aggressive logging for this unit.
1919

2020
// Put this at the top to make sure it pulls all the right dependencies
@@ -394,6 +394,10 @@ static void test_stl_compatibility_for_reads() {
394394
assert(str("12341234") <= str("12341234"));
395395
assert(str("12341234") > str("12241224"));
396396
assert(str("12341234") < str("13241324"));
397+
assert(str("0123456789012345678901234567890123456789012345678901234567890123") ==
398+
str("0123456789012345678901234567890123456789012345678901234567890123"));
399+
assert(str("0123456789012345678901234567890123456789012345678901234567890123") !=
400+
str("0223456789012345678901234567890123456789012345678901234567890123"));
397401

398402
// Comparisons.
399403
assert(str("a") != str("b"));
@@ -1501,8 +1505,8 @@ int main(int argc, char const **argv) {
15011505

15021506
// Basic utilities
15031507
test_arithmetical_utilities();
1504-
test_memory_utilities();
1505-
test_replacements();
1508+
// test_memory_utilities();
1509+
// test_replacements();
15061510

15071511
// Compatibility with STL
15081512
#if SZ_DETECT_CPP_17 && __cpp_lib_string_view

0 commit comments

Comments
 (0)