Skip to content

Commit

Permalink
Tests: add more test values for unsigned with high-bits set.
Browse files Browse the repository at this point in the history
  • Loading branch information
adriaandegroot authored and vanrein committed Jan 7, 2018
1 parent a864ebc commit a6810a8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/int_putget.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
int unsigned_tests (void) {
uint32_t tests [] = {
0, 1, 255, 256, 32767, 32768, 65535, 65536,
0x7fffffff, 0x80000000, 0xc0000000, 0xf0000000, 0xffffffff
0x7fffffff,
/* Now the high bits */
0x80000000, 0xc0000000,
0xf0000000, 0xff000000,
0xff800000, 0xffffffff
};
int numtests = sizeof (tests) / sizeof (tests [0]);
int ok = 1;
Expand Down

0 comments on commit a6810a8

Please sign in to comment.