Skip to content

Instantly share code, notes, and snippets.

@mvr
Created March 13, 2009 23:49
Show Gist options
  • Save mvr/78834 to your computer and use it in GitHub Desktop.
Save mvr/78834 to your computer and use it in GitHub Desktop.
Running 686 tests.................
In TestBignum::test_from_int:
./vm/test/test_bignum.hpp:31: Error: Expected (2147483647 == obj->to_native()), found (2147483647 != -1879048193)
..
In TestBignum::test_from_long:
./vm/test/test_bignum.hpp:47: Error: Expected (2147483647L == obj->to_long()), found (2147483647 != -1879048193)
In TestBignum::test_from_long_negative:
./vm/test/test_bignum.hpp:53: Error: Expected ((long)0x80000000L == obj->to_long()), found (-? != 0)
In TestBignum::test_from_unsigned_long:
./vm/test/test_bignum.hpp:58: Error: Expected (4294967295LU == obj->to_ulong()), found (4294967295 != 2415919103)
......
In TestBignum::test_normalize:
./vm/test/test_bignum.hpp:101: Error: Expected (Fixnum::from((((native_int)1 << ((8 * sizeof(native_int)) - 1 - 1)) - 1)) == as<Fixnum>(max)), found ({ FF FF FF 7F } != { FF FF FF 1F })
In TestBignum::test_add_positive_range:
./vm/test/test_bignum.hpp:129: Error: Expected ((((native_int)1 << ((8 * sizeof(native_int)) - 1 - 1)) - 1) == sum->to_native()), found (1073741823 != 268435455)
In TestBignum::test_add_negative_range:
./vm/test/test_bignum.hpp:155: Error: Expected ((-((((native_int)1 << ((8 * sizeof(native_int)) - 1 - 1)) - 1))) == sum->to_native()), found (-1073741823 != -268435455)
In TestBignum::test_add_with_positive_fixnum:
./vm/test/test_bignum.hpp:183: Error: Expected ((((native_int)1 << ((8 * sizeof(native_int)) - 1 - 1)) - 1) == sum->to_native()), found (1073741823 != 268435455)
In TestBignum::test_add_with_negative_fixnum:
./vm/test/test_bignum.hpp:211: Error: Expected ((((native_int)1 << ((8 * sizeof(native_int)) - 1 - 1)) - 1) == sum->to_native()), found (1073741823 != 268435455)
In TestBignum::test_add_with_float:
./vm/test/test_bignum.hpp:121: Error: Expected (f->val == g->val) up to TOLERANCE (0.0000), found (8589934601.2000 != 1073741833.0000)
In TestBignum::test_sub_positive_range:
./vm/test/test_bignum.hpp:243: Error: Expected ((((native_int)1 << ((8 * sizeof(native_int)) - 1 - 1)) - 1) == diff->to_native()), found (1073741823 != 268435455)
In TestBignum::test_sub_negative_range:
./vm/test/test_bignum.hpp:269: Error: Expected ((-((((native_int)1 << ((8 * sizeof(native_int)) - 1 - 1)) - 1))) == diff->to_native()), found (-1073741823 != -268435455)
In TestBignum::test_sub_with_positive_fixnum:
./vm/test/test_bignum.hpp:297: Error: Expected ((((native_int)1 << ((8 * sizeof(native_int)) - 1 - 1)) - 1) == diff->to_native()), found (1073741823 != 268435455)
In TestBignum::test_sub_with_negative_fixnum:
./vm/test/test_bignum.hpp:325: Error: Expected ((((native_int)1 << ((8 * sizeof(native_int)) - 1 - 1)) - 1) == diff->to_native()), found (1073741823 != 268435455)
In TestBignum::test_sub_with_float:
./vm/test/test_bignum.hpp:121: Error: Expected (f->val == g->val) up to TOLERANCE (0.0000), found (8589934600.8000 != 1073741832.6000)
In TestBignum::test_mul_positive_range:
./vm/test/test_bignum.hpp:357: Error: Expected ((((native_int)1 << ((8 * sizeof(native_int)) - 1 - 1)) - 1) == max->to_native()), found (1073741823 != 268435455)
In TestBignum::test_mul_negative_range:
./vm/test/test_bignum.hpp:383: Error: Expected ((-((((native_int)1 << ((8 * sizeof(native_int)) - 1 - 1)) - 1))) == min->to_native()), found (-1073741823 != -268435455)
In TestBignum::test_mul_with_positive_fixnum:
./vm/test/test_bignum.hpp:412: Error: Expected ((((native_int)1 << ((8 * sizeof(native_int)) - 1 - 1)) - 1)+1 == max_plus1->to_native()), found (1073741824 != 0)
In TestBignum::test_mul_with_negative_fixnum:
./vm/test/test_bignum.hpp:441: Error: Expected ((((native_int)1 << ((8 * sizeof(native_int)) - 1 - 1)) - 1)+1 == max_plus1->to_native()), found (1073741824 != 0)
In TestBignum::test_mul_with_float:
./vm/test/test_bignum.hpp:121: Error: Expected (f->val == g->val) up to TOLERANCE (0.0000), found (1717986920.8000 != 214748366.6000)
In TestBignum::test_div:
./vm/test/test_bignum.hpp:478: Error: Expected ((((native_int)1 << ((8 * sizeof(native_int)) - 1 - 1)) - 1)+1 == max_plus1->to_native()), found (1073741824 != 0)
In TestBignum::test_div_with_fixnum:
./vm/test/test_bignum.hpp:511: Error: Expected ((((native_int)1 << ((8 * sizeof(native_int)) - 1 - 1)) - 1)+1 == max_plus1->to_native()), found (1073741824 != 0)
In TestBignum::test_div_with_float:
./vm/test/test_bignum.hpp:121: Error: Expected (f->val == g->val) up to TOLERANCE (0.0000), found (10200547327.5199 != 1431655764.8888)
In TestBignum::test_divmod:
./vm/test/test_bignum.hpp:545: Error: Expected (1073741823 == as<Fixnum>(ary->get(state, 0))->to_native()), found (1073741823 != 268435455)
In TestBignum::test_mod:
./vm/test/test_bignum.hpp:583: Error: Expected ((((native_int)1 << ((8 * sizeof(native_int)) - 1 - 1)) - 1) == fix->to_native()), found (1073741823 != 268435455)
.
In TestBignum::test_mod_with_float:
./vm/test/test_bignum.hpp:121: Error: Expected (f->val == g->val) up to TOLERANCE (0.0000), found (-17018036.5915 != -880872.9997)
In TestBignum::test_left_shift:
./vm/test/test_bignum.hpp:633: Error: Expected (1L << (((8 * sizeof(native_int)) - 1 - 1)-1) == fix->to_native()), found (536870912 != 0)
In TestBignum::test_right_shift:
./vm/test/test_bignum.hpp:661: Error: Expected (1L << (((8 * sizeof(native_int)) - 1 - 1)-1) == fix->to_native()), found (536870912 != 0)
In TestBignum::test_pow:
./vm/test/test_bignum.hpp:689: Error: Expected (1L << (((8 * sizeof(native_int)) - 1 - 1)-1) == fix->to_native()), found (536870912 != 0)
....
In TestBignum::test_neg:
./vm/test/test_bignum.hpp:773: Error: Expected (-((((native_int)1 << ((8 * sizeof(native_int)) - 1 - 1)) - 1)+1) == negated->to_native()), found (-1073741824 != 0)
In TestBignum::test_invert:
./vm/test/test_bignum.hpp:787: Error: Expected ((-((((native_int)1 << ((8 * sizeof(native_int)) - 1 - 1)) - 1))) == inverted->to_native()), found (-1073741823 != -268435455)
In TestBignum::test_bit_and:
./vm/test/test_bignum.hpp:801: Error: Expected (1L<<(((8 * sizeof(native_int)) - 1 - 1)-1) == fix->to_native()), found (536870912 != 0)
In TestBignum::test_bit_and_with_fixnum:
./vm/test/test_bignum.hpp:826: Error: Expected (1L<<(((8 * sizeof(native_int)) - 1 - 1)-1) == fix->to_native()), found (536870912 != 0)
.
In TestBignum::test_bit_or:
./vm/test/test_bignum.hpp:854: Error: Expected ((((native_int)1 << ((8 * sizeof(native_int)) - 1 - 1)) - 1) == fix->to_native()), found (1073741823 != 268435455)
In TestBignum::test_bit_or_with_fixnum:
./vm/test/test_bignum.hpp:879: Error: Expected ((((native_int)1 << ((8 * sizeof(native_int)) - 1 - 1)) - 1) == fix->to_native()), found (1073741823 != 268435455)
.
In TestBignum::test_bit_xor:
./vm/test/test_bignum.hpp:907: Error: Expected ((((native_int)1 << ((8 * sizeof(native_int)) - 1 - 1)) - 1) == fix->to_native()), found (1073741823 != 268435455)
In TestBignum::test_bit_xor_with_fixnum:
./vm/test/test_bignum.hpp:933: Error: Expected ((((native_int)1 << ((8 * sizeof(native_int)) - 1 - 1)) - 1) == fix->to_native()), found (1073741823 != 268435455)
.....
In TestBignum::test_to_float:
./vm/test/test_bignum.hpp:121: Error: Expected (f->val == g->val) up to TOLERANCE (0.0000), found (15300820991.0486 != 2147483647.6666)
............................................................................
In TestFixnum::test_add_overflows_to_bignum:
./vm/test/test_fixnum.hpp:54: Error: Expected ((((native_int)1 << ((8 * sizeof(native_int)) - 1 - 1)) - 1)+1 == max_plus1->to_native()), found (1073741824 != 0)
In TestFixnum::test_add_underflows_to_bignum:
./vm/test/test_fixnum.hpp:62: Error: Expected ((-((((native_int)1 << ((8 * sizeof(native_int)) - 1 - 1)) - 1)))-1 == min_minus1->to_native()), found (-1073741824 != 0)
In TestFixnum::test_add_a_bignum:
./vm/test/test_fixnum.hpp:71: Error: Expected (res->to_native() == (((native_int)1 << ((8 * sizeof(native_int)) - 1 - 1)) - 1) + 3), found (2 != 1073741826)
..
In TestFixnum::test_sub_overflows_to_bignum:
./vm/test/test_fixnum.hpp:93: Error: Expected ((((native_int)1 << ((8 * sizeof(native_int)) - 1 - 1)) - 1)+1 == max_plus1->to_native()), found (1073741824 != 0)
In TestFixnum::test_sub_underflows_to_bignum:
./vm/test/test_fixnum.hpp:101: Error: Expected ((-((((native_int)1 << ((8 * sizeof(native_int)) - 1 - 1)) - 1)))-1 == min_minus1->to_native()), found (-1073741824 != 0)
In TestFixnum::test_sub_a_bignum:
./vm/test/test_fixnum.hpp:110: Error: Expected (res->to_native() == 13 - ((((native_int)1 << ((8 * sizeof(native_int)) - 1 - 1)) - 1) + 28)), found (-14 != -1073741838)
..
In TestFixnum::test_mul_overflows_to_bignum:
./vm/test/test_fixnum.hpp:148: Error: Expected ((((native_int)1 << ((8 * sizeof(native_int)) - 1 - 1)) - 1)+1 == max_plus1->to_native()), found (1073741824 != 0)
In TestFixnum::test_mul_underflows_to_bignum:
./vm/test/test_fixnum.hpp:162: Error: Expected ((-((((native_int)1 << ((8 * sizeof(native_int)) - 1 - 1)) - 1)))-1 == min_minus1->to_native()), found (-1073741824 != 0)
.....................
In TestFixnum::test_pow_overflows_to_bignum:
./vm/test/test_fixnum.hpp:328: Error: Expected (Fixnum::from(1L << (((8 * sizeof(native_int)) - 1 - 1)-1)) == fix), found ({ 01 00 00 40 } != { 01 00 00 00 })
In TestFixnum::test_pow_underflows_to_bignum:
./vm/test/test_fixnum.hpp:340: Error: Expected (Fixnum::from(-1L << (((8 * sizeof(native_int)) - 1 - 1)-1)) == fix), found ({ 01 00 00 C0 } != { 01 00 00 00 })
...................
In TestFixnum::test_left_shift_overflows_to_bignum:
./vm/test/test_fixnum.hpp:481: Error: Expected ((((native_int)1 << ((8 * sizeof(native_int)) - 1 - 1)) - 1) + 1 == max_plus1->to_native()), found (1073741824 != 0)
.
In TestFixnum::test_right_shift_overflows_to_bignum:
./vm/test/test_fixnum.hpp:517: Error: Expected ((((native_int)1 << ((8 * sizeof(native_int)) - 1 - 1)) - 1) + 1 == max_plus1->to_native()), found (1073741824 != 0)
..................
In TestFloat::test_add:
./vm/test/test_float.hpp:20: Error: Expected (f->val == g->val) up to TOLERANCE (0.0000), found (8589934601.2000 != 1073741833.0000)
In TestFloat::test_sub:
./vm/test/test_float.hpp:20: Error: Expected (f->val == g->val) up to TOLERANCE (0.0000), found (-8589934600.8000 != -1073741832.6000)
In TestFloat::test_mul:
./vm/test/test_float.hpp:20: Error: Expected (f->val == g->val) up to TOLERANCE (0.0000), found (1717986920.8000 != 214748366.6000)
.
In TestFloat::test_div:
./vm/test/test_float.hpp:20: Error: Expected (f->val == g->val) up to TOLERANCE (0.0000), found (0.0000 != 0.0000)
................................................
In TestInteger::test_from_native_int:
./vm/test/test_integer.hpp:39: Error: Expected (obj->to_native() == (native_int)2147483647), found (-1879048193 != 2147483647)
In TestInteger::test_from_int:
./vm/test/test_integer.hpp:50: Error: Expected (obj->to_native() == (native_int)2147483647), found (-1879048193 != 2147483647)
In TestInteger::test_from_unsigned_int:
./vm/test/test_integer.hpp:58: Error: Expected (obj->to_native() == (native_int)2147483647), found (-1879048193 != 2147483647)
In TestInteger::test_from_unsigned_long:
./vm/test/test_integer.hpp:66: Error: Expected (obj->to_native() == (native_int)2147483647), found (-1879048193 != 2147483647)
.
In TestInteger::test_from_unsigned_long_long:
./vm/test/test_integer.hpp:85: Error: Expected (obj->to_native() == (native_int)-13), found (-1879048205 != -13)
......................................................................................................................................
In TestNativeFunction::test_bind_with_int:
./vm/test/test_nativefunction.hpp:230: Error: Expected (as<Integer>(out)->to_native() == (native_int)2147483647), found (-1879048193 != 2147483647)
In TestNativeFunction::test_bind_with_unsigned_int:
./vm/test/test_nativefunction.hpp:264: Error: Expected (as<Integer>(out)->to_native() == (native_int)2147483647), found (-1879048193 != 2147483647)
.
In TestNativeFunction::test_bind_with_unsigned_long:
./vm/test/test_nativefunction.hpp:332: Error: Expected (as<Integer>(out)->to_native() == (native_int)2147483647), found (268435455 != 2147483647)
.......................................................................................................................................................................................................................................................................
Failed 62 of 686 tests
Success rate: 90%
rake aborted!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment