diff options
| author | Marko Kreen | 2011-02-26 23:55:45 +0000 |
|---|---|---|
| committer | Marko Kreen | 2011-02-26 23:55:45 +0000 |
| commit | 053dddf191ee7f9e9b057bec2aed6c09a66c6195 (patch) | |
| tree | 5e76b9994ed3eb323d89b4782afe5c22608478b2 /test | |
| parent | 35e038fd57b30e3150e583d70256e882fff1ec83 (diff) | |
lookup3: tests for big-endian
Diffstat (limited to 'test')
| -rw-r--r-- | test/test_hashing.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/test/test_hashing.c b/test/test_hashing.c index 09bdaa9..f4ef012 100644 --- a/test/test_hashing.c +++ b/test/test_hashing.c @@ -30,14 +30,13 @@ end:; static void test_lookup3(void *p) { #ifdef WORDS_BIGENDIAN - #warning n/a int_check(xlookup3(""), 3735928559); - int_check(xlookup3("a"), 1490454280); - int_check(xlookup3("abc"), 238646833); - int_check(xlookup3("message digest"), 2512672053); - int_check(xlookup3("abcdefghijklmnopqrstuvwxyz"), 1966650813); - int_check(xlookup3("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"), 3992286962); - int_check(xlookup3("12345678901234567890123456789012345678901234567890123456789012345678901234567890"), 2776963519); + int_check(xlookup3("a"), -454251968); + int_check(xlookup3("abc"), -1186250080); + int_check(xlookup3("message digest"), 670730672); + int_check(xlookup3("abcdefghijklmnopqrstuvwxyz"), 251682059); + int_check(xlookup3("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"), 567386262); + int_check(xlookup3("12345678901234567890123456789012345678901234567890123456789012345678901234567890"), 312582506); #else int_check(xlookup3(""), 3735928559); int_check(xlookup3("a"), 1490454280); |
