Merge pull request #47615 from HarryLeeIBM/hlee-s390x-siphash-tests

Fix siphash128 related tests for s390x
This commit is contained in:
Alexander Gololobov 2023-03-15 22:57:55 +01:00 committed by GitHub
commit f515e35001
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 8 deletions

View File

@ -191,6 +191,6 @@ E51B38608EF25F57
1
1
E28DBDE7FE22E41C
1CE422FEE7BD8DE20000000000000000
1
E28DBDE7FE22E41C
1CE422FEE7BD8DE20000000000000000
1

View File

@ -269,6 +269,6 @@ select sipHash64Keyed(toUInt64(0), '1'); -- { serverError 48 }
select sipHash128Keyed(toUInt64(0), '1'); -- { serverError 48 }
select hex(sipHash64());
select hex(sipHash128());
SELECT hex(sipHash128()) = hex(reverse(unhex('1CE422FEE7BD8DE20000000000000000'))) or hex(sipHash128()) = '1CE422FEE7BD8DE20000000000000000';
select hex(sipHash64Keyed());
select hex(sipHash128Keyed());
SELECT hex(sipHash128Keyed()) = hex(reverse(unhex('1CE422FEE7BD8DE20000000000000000'))) or hex(sipHash128Keyed()) = '1CE422FEE7BD8DE20000000000000000';

View File

@ -126,5 +126,5 @@ E3040C00EB28F15366CA73CBD872E740
1
1
1
1CE422FEE7BD8DE20000000000000000
1CE422FEE7BD8DE20000000000000000
1
1

View File

@ -203,5 +203,5 @@ select sipHash128ReferenceKeyed((toUInt64(0),toUInt64(0)),char(0, 1, 2, 3, 4, 5,
select sipHash128ReferenceKeyed((0, 0), '1'); -- { serverError 48 }
select sipHash128ReferenceKeyed(toUInt64(0), '1'); -- { serverError 48 }
select hex(sipHash128Reference());
select hex(sipHash128ReferenceKeyed());
SELECT hex(sipHash128Reference()) = hex(reverse(unhex('1CE422FEE7BD8DE20000000000000000'))) or hex(sipHash128()) = '1CE422FEE7BD8DE20000000000000000';
SELECT hex(sipHash128ReferenceKeyed()) = hex(reverse(unhex('1CE422FEE7BD8DE20000000000000000'))) or hex(sipHash128Keyed()) = '1CE422FEE7BD8DE20000000000000000';