From bf325529acdaef6ad550c8c8690d745e18f0a585 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Sun, 24 Jan 2010 03:26:18 -0800 Subject: [PATCH] Testcase for #480. --- tests/run/float_len_T480.pyx | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/run/float_len_T480.pyx diff --git a/tests/run/float_len_T480.pyx b/tests/run/float_len_T480.pyx new file mode 100644 index 00000000..7020570e --- /dev/null +++ b/tests/run/float_len_T480.pyx @@ -0,0 +1,9 @@ +def f(x): + return x + +def float_len(x): + """ + >>> float_len([1,2,3]) + 3.0 + """ + float(len(f(x))) -- 2.26.2