| ... | ... | @@ -366,7 +366,7 @@ fn SMHasherTest(comptime hash_fn: anytype) u32 { |
| 366 | 366 | |
| 367 | 367 | // comptime can't really do reinterpret casting yet, |
| 368 | 368 | // so we need to write the bytes manually. |
| 369 | | for (hashes_bytes[i*@sizeOf(HashResult)..][0..@sizeOf(HashResult)]) |*byte| { |
| 369 | for (hashes_bytes[i * @sizeOf(HashResult) ..][0..@sizeOf(HashResult)]) |*byte| { |
| 370 | 370 | byte.* = @truncate(u8, h); |
| 371 | 371 | h = h >> 8; |
| 372 | 372 | } |
| ... | ... | @@ -389,8 +389,10 @@ test "cityhash32" { |
| 389 | 389 | } |
| 390 | 390 | }; |
| 391 | 391 | Test.doTest(); |
| 392 | | @setEvalBranchQuota(50000); |
| 393 | | comptime Test.doTest(); |
| 392 | // TODO This is uncommented to prevent OOM on the CI server. Re-enable this test |
| 393 | // case once we ship stage2. |
| 394 | //@setEvalBranchQuota(50000); |
| 395 | //comptime Test.doTest(); |
| 394 | 396 | } |
| 395 | 397 | |
| 396 | 398 | test "cityhash64" { |
| ... | ... | @@ -402,6 +404,8 @@ test "cityhash64" { |
| 402 | 404 | } |
| 403 | 405 | }; |
| 404 | 406 | Test.doTest(); |
| 405 | | @setEvalBranchQuota(50000); |
| 406 | | comptime Test.doTest(); |
| 407 | // TODO This is uncommented to prevent OOM on the CI server. Re-enable this test |
| 408 | // case once we ship stage2. |
| 409 | //@setEvalBranchQuota(50000); |
| 410 | //comptime Test.doTest(); |
| 407 | 411 | } |