Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
TODO the "big indx/double modulus" tests since fail <= 2.007
  • Loading branch information
mohawk2 committed Mar 15, 2015
1 parent 5cbd281 commit fb9880b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions t/ops.t
Expand Up @@ -161,11 +161,15 @@ ok all(ushort($a) % ushort($b)==ushort($c)), 'ushort modulus';
#basically this is exercising the (typecast)(X)/(N) in the macros
$INT_MAX=2147483647;

TODO: {
local $TODO = undef;
$TODO = 'These tests have failed since <=2.007' if $^O eq 'MSWin32';
ok long($INT_MAX)%1 == 0, 'big long modulus';
cmp_ok indx($INT_MAX*4)%2, '==', 0, 'big indx modulus';
ok longlong($INT_MAX*4)%2 == 0, 'big longlong modulus';
#skip float intentionally here, since float($INT_MAX)!=$INT_MAX
cmp_ok double($INT_MAX*4)%2, '==', 0, 'big double modulus';
}

#and do the same for byte (unsigned char) and ushort
$BYTE_MAX = 255;
Expand Down

0 comments on commit fb9880b

Please sign in to comment.