From 0b3014ce3ac381e886c956137e4e5475061a5ddc Mon Sep 17 00:00:00 2001 From: David Steinberg Date: Sun, 25 Jan 2015 02:50:34 +0000 Subject: py: Add support for floats in mp_binary_{get,set}_val() - This then provides support for floats in the struct package --- tests/float/float_struct.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/float/float_struct.py (limited to 'tests/float/float_struct.py') diff --git a/tests/float/float_struct.py b/tests/float/float_struct.py new file mode 100644 index 000000000..8ad0e492c --- /dev/null +++ b/tests/float/float_struct.py @@ -0,0 +1,12 @@ +# test struct package with floats + +import struct + +i = 1. + 1/2 +# TODO: it looks like '=' format modifier is not yet supported +# for fmt in ('f', 'd', '>f', '>d', 'f', '>d', '