Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Change t/ops.t indx and double modulus tests to cmp_ok
  • Loading branch information
mohawk2 committed Mar 15, 2015
1 parent 27764a1 commit 0fc1c2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/ops.t
Expand Up @@ -162,10 +162,10 @@ ok all(ushort($a) % ushort($b)==ushort($c)), 'ushort modulus';
$INT_MAX=2147483647;

ok long($INT_MAX)%1 == 0, 'big long modulus';
ok indx($INT_MAX*4)%2 == 0, 'big indx 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
ok double($INT_MAX*4)%2 == 0, 'big double modulus';
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 0fc1c2b

Please sign in to comment.