@@ -207,16 +207,18 @@ namespace util {
207207 WHEN (" xxhash32 is called with a string literal" ) {
208208 THEN (" it matches the expected seedless and seeded values (no NUL terminator)" ) {
209209 // Match with and without seed
210- REQUIRE (xxhash32 (" FooBar" ) == xxhash32 (" FooBar" , std::strlen (" FooBar" )));
211- REQUIRE (xxhash32 (" FooBar" , fixed_seed) == xxhash32 (" FooBar" , std::strlen (" FooBar" ), fixed_seed));
210+ const char * str = " FooBar" ;
211+ CHECK (xxhash32 (" FooBar" ) == xxhash32 (str, std::strlen (str)));
212+ CHECK (xxhash32 (" FooBar" , fixed_seed) == xxhash32 (str, std::strlen (str), fixed_seed));
212213 }
213214 }
214215
215216 WHEN (" xxhash64 is called with a string literal" ) {
216217 THEN (" it matches the expected seedless and seeded values (no NUL terminator)" ) {
217218 // Match with and without seed
218- REQUIRE (xxhash64 (" FooBar" ) == xxhash64 (" FooBar" , std::strlen (" FooBar" )));
219- REQUIRE (xxhash64 (" FooBar" , fixed_seed) == xxhash64 (" FooBar" , std::strlen (" FooBar" ), fixed_seed));
219+ const char * str = " FooBar" ;
220+ CHECK (xxhash64 (" FooBar" ) == xxhash64 (str, std::strlen (str)));
221+ CHECK (xxhash64 (" FooBar" , uint64_t (fixed_seed)) == xxhash64 (str, std::strlen (str), fixed_seed));
220222 }
221223 }
222224 }
0 commit comments