diff options
Diffstat (limited to 'src/tests/common/container_hash.cpp')
| -rw-r--r-- | src/tests/common/container_hash.cpp | 37 |
1 files changed, 20 insertions, 17 deletions
diff --git a/src/tests/common/container_hash.cpp b/src/tests/common/container_hash.cpp index 923ac62db..dc45565ef 100644 --- a/src/tests/common/container_hash.cpp +++ b/src/tests/common/container_hash.cpp | |||
| @@ -17,25 +17,28 @@ TEST_CASE("ContainerHash", "[common]") { | |||
| 17 | 33970, 45501, 5619, 15895, 33227, 27509, 25391, 37275, 60218, 17599, | 17 | 33970, 45501, 5619, 15895, 33227, 27509, 25391, 37275, 60218, 17599, |
| 18 | }; | 18 | }; |
| 19 | constexpr std::array<u32, 32> U32Values{ | 19 | constexpr std::array<u32, 32> U32Values{ |
| 20 | 3838402410, 2029146863, 1730869921, 985528872, 186773874, 2094639868, 3324775932, | 20 | 3838402410U, 2029146863U, 1730869921U, 985528872U, 186773874U, 2094639868U, 3324775932U, |
| 21 | 1795512424, 2571165571, 3256934519, 2358691590, 2752682538, 1484336451, 378124520, | 21 | 1795512424U, 2571165571U, 3256934519U, 2358691590U, 2752682538U, 1484336451U, 378124520U, |
| 22 | 3463015699, 3395942161, 1263211979, 3473632889, 3039822212, 2068707357, 2223837919, | 22 | 3463015699U, 3395942161U, 1263211979U, 3473632889U, 3039822212U, 2068707357U, 2223837919U, |
| 23 | 1823232191, 1583884041, 1264393380, 4087566993, 3188607101, 3933680362, 1464520765, | 23 | 1823232191U, 1583884041U, 1264393380U, 4087566993U, 3188607101U, 3933680362U, 1464520765U, |
| 24 | 1786838406, 1311734848, 2773642241, 3993641692, | 24 | 1786838406U, 1311734848U, 2773642241U, 3993641692U, |
| 25 | }; | 25 | }; |
| 26 | constexpr std::array<u64, 32> U64Values{ | 26 | constexpr std::array<u64, 32> U64Values{ |
| 27 | 5908025796157537817, 10947547850358315100, 844798943576724669, 7999662937458523703, | 27 | 5908025796157537817ULL, 10947547850358315100ULL, 844798943576724669ULL, |
| 28 | 4006550374705895164, 1832550525423503632, 9323088254855830976, 12028890075598379412, | 28 | 7999662937458523703ULL, 4006550374705895164ULL, 1832550525423503632ULL, |
| 29 | 6021511300787826236, 7864675007938747948, 18099387408859708806, 6438638299316820708, | 29 | 9323088254855830976ULL, 12028890075598379412ULL, 6021511300787826236ULL, |
| 30 | 9029399285648501543, 18195459433089960253, 17214335092761966083, 5549347964591337833, | 30 | 7864675007938747948ULL, 18099387408859708806ULL, 6438638299316820708ULL, |
| 31 | 14899526073304962015, 5058883181561464475, 7436311795731206973, 7535129567768649864, | 31 | 9029399285648501543ULL, 18195459433089960253ULL, 17214335092761966083ULL, |
| 32 | 1287169596809258072, 8237671246353565927, 1715230541978016153, 8443157615068813300, | 32 | 5549347964591337833ULL, 14899526073304962015ULL, 5058883181561464475ULL, |
| 33 | 6098675262328527839, 704652094100376853, 1303411723202926503, 7808312933946424854, | 33 | 7436311795731206973ULL, 7535129567768649864ULL, 1287169596809258072ULL, |
| 34 | 6863726670433556594, 9870361541383217495, 9273671094091079488, 17541434976160119010, | 34 | 8237671246353565927ULL, 1715230541978016153ULL, 8443157615068813300ULL, |
| 35 | 6098675262328527839ULL, 704652094100376853ULL, 1303411723202926503ULL, | ||
| 36 | 7808312933946424854ULL, 6863726670433556594ULL, 9870361541383217495ULL, | ||
| 37 | 9273671094091079488ULL, 17541434976160119010ULL, | ||
| 35 | }; | 38 | }; |
| 36 | 39 | ||
| 37 | REQUIRE(Common::HashValue(U8Values) == 5867183267093890552); | 40 | REQUIRE(Common::HashValue(U8Values) == 5867183267093890552ULL); |
| 38 | REQUIRE(Common::HashValue(U16Values) == 9594135570564347135); | 41 | REQUIRE(Common::HashValue(U16Values) == 9594135570564347135ULL); |
| 39 | REQUIRE(Common::HashValue(U32Values) == 13123757214696618460); | 42 | REQUIRE(Common::HashValue(U32Values) == 13123757214696618460ULL); |
| 40 | REQUIRE(Common::HashValue(U64Values) == 7296500016546938380); | 43 | REQUIRE(Common::HashValue(U64Values) == 7296500016546938380ULL); |
| 41 | } | 44 | } |