aboutsummaryrefslogtreecommitdiff
path: root/tests/runner.py
diff options
context:
space:
mode:
authorAlon Zakai <azakai@mozilla.com>2010-12-04 20:26:28 -0800
committerAlon Zakai <azakai@mozilla.com>2010-12-04 20:26:28 -0800
commit7e332b116c930f1bd12a4da10ac1cf4ab21ab024 (patch)
tree346b07da2d4bc592a3ae904db3e9069ab134bc27 /tests/runner.py
parent60d8f78f3fc22a9ea96ab09e527760149569d3e2 (diff)
fix for bitshifts
Diffstat (limited to 'tests/runner.py')
-rw-r--r--tests/runner.py13
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 14b1f2a4..d8267d2e 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -171,10 +171,21 @@ if 'benchmark' not in sys.argv:
int p = h;
p &= 0;
printf("*%d,%d,%d,%d,%d,%d,%d,%d,%d*\\n", x, y, z, w, k, i, j, h, p);
+
+ long hash = -1;
+ size_t perturb;
+ int ii = 0;
+ for (perturb = hash; ; perturb >>= 5) {
+ printf("%d:%d", ii, perturb);
+ ii++;
+ if (ii == 9) break;
+ printf(",");
+ }
+ printf("*\\n");
return 0;
}
'''
- self.do_test(src, '*5,23,10,19,121,1,37,1,0*')
+ self.do_test(src, '*5,23,10,19,121,1,37,1,0*\n0:-1,1:134217727,2:4194303,3:131071,4:4095,5:127,6:3,7:0,8:0*')
def test_unsigned(self):
src = '''