Permalink
Browse files

Float representation can be different for different Python versions

  • Loading branch information...
1 parent 1504383 commit cd650662c795a3efb5b9f768b79e3212f47385d7 @hdima committed Jul 24, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/erlport/tests/erlterms.txt
View
7 src/erlport/tests/erlterms.txt
@@ -203,15 +203,16 @@ Float values:
>>> decode('\x83F\x00\x00\x00\x00\x00\x00\x00\x00')
(0.0, '')
- >>> decode('\x83F?\xf1\x99\x99\x99\x99\x99\x9a')
- (1.1000000000000001, '')
+ >>> decode('\x83F?\xf1\x99\x99\x99\x99\x99\x9a') # doctest: +ELLIPSIS
+ (1.1..., '')
>>> decode('\x83F@$?4\xd6\xa1a\xe5')
(10.12345, '')
>>> decode('\x83c0.00000000000000000000e+00\x00\x00\x00\x00\x00')
(0.0, '')
>>> decode('\x83c1.10000000000000008882e+00\x00\x00\x00\x00\x00')
- (1.1000000000000001, '')
+ ... # doctest: +ELLIPSIS
+ (1.1..., '')
>>> decode('\x83c1.01234500000000000597e+01\x00\x00\x00\x00\x00')
(10.12345, '')

0 comments on commit cd65066

Please sign in to comment.