Add a bunch more tests to the test suite, some of which require a 32-bit system.
authorMatt McCutchen <matt@mattmccutchen.net>
Wed, 16 Jul 2008 19:59:18 +0000 (15:59 -0400)
committerMatt McCutchen <matt@mattmccutchen.net>
Wed, 16 Jul 2008 19:59:18 +0000 (15:59 -0400)
commite6866cd00f91dd02fb54942d61fb1586ce0ed5b5
treebf9313ffeba7324e6ccc2d183b8b3e35caf2502d
parent83a639e66e094c683b48215a895f6d35e9d60d32
Add a bunch more tests to the test suite, some of which require a 32-bit system.

These tests, which I mostly wrote a while ago but am just now committing, give
me some confidence that the conversion code is actually correct!  I couldn't
find a practical word-size-independent way to test such things as
stringToBigUnsigned("4294967296").toUnsignedLong() , so for now I'm making the
test suite specific to systems with short = 16 bits and int = long = 32 bits and
hoping that, if it works on those, it will also work on others.
Makefile
testsuite.cc