diff options
-rw-r--r-- | Lib/test/output/test_xdr | 5 | ||||
-rw-r--r-- | Lib/test/test_xdr.py | 27 |
2 files changed, 0 insertions, 32 deletions
diff --git a/Lib/test/output/test_xdr b/Lib/test/output/test_xdr deleted file mode 100644 index 1801a13..0000000 --- a/Lib/test/output/test_xdr +++ /dev/null @@ -1,5 +0,0 @@ -test_xdr -_xdr.pack_float() -_xdr.unpack_float() -_xdr.pack_double() -_xdr.unpack_double() diff --git a/Lib/test/test_xdr.py b/Lib/test/test_xdr.py deleted file mode 100644 index 0cc7a3a..0000000 --- a/Lib/test/test_xdr.py +++ /dev/null @@ -1,27 +0,0 @@ -from test_support import verbose -import _xdr - -fd = 8.01 -print '_xdr.pack_float()' -s = _xdr.pack_float(fd) -if verbose: - print `s` -print '_xdr.unpack_float()' -f = _xdr.unpack_float(s) -if verbose: - print f -if int(100*f) <> int(100*fd): - print 'pack_float() <> unpack_float()' - -fd = 9900000.9 -print '_xdr.pack_double()' -s = _xdr.pack_double(fd) -if verbose: - print `s` -print '_xdr.unpack_double()' -f = _xdr.unpack_double(s) -if verbose: - print f - -if int(100*f) <> int(100*fd): - print 'pack_double() <> unpack_double()' |