Skip to content

Commit dc587a3

Browse files
committed
test/float2int: Make test output clearer.
1 parent a2e39a7 commit dc587a3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/float/float2int.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
for i in range(0,p2_rng):
3434
bitcnt = len(bin(int(2.**i))) - 3;
3535
if i != bitcnt:
36-
print('fail: 2**%u was %u bits long' % (i, bitcnt));
36+
print('fail: 2.**%u was %u bits long' % (i, bitcnt));
3737
testpass = False
3838
print("power of 2 test: %s" % (testpass and 'passed' or 'failed'))
3939

@@ -43,7 +43,7 @@
4343
for i in range(0,p10_rng):
4444
digcnt = len(str(int(10.**i))) - 1;
4545
if i != digcnt:
46-
print('fail: 10**%u was %u digits long' % (i, digcnt));
46+
print('fail: 10.**%u was %u digits long' % (i, digcnt));
4747
testpass = False
4848
print("power of 10 test: %s" % (testpass and 'passed' or 'failed'))
4949

0 commit comments

Comments
 (0)