From 12c66be2b8baab093c7be5e2108d2767c9779a69 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 29 Jan 2015 00:44:11 +0000 Subject: tests: Add some tests to improve coverage. Used gcov to find some parts of vm.c, runtime.c, obj.c that were not covered by any tests. Still need to use gcov more thoroughly. --- tests/float/int_power.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/float/int_power.py (limited to 'tests/float') diff --git a/tests/float/int_power.py b/tests/float/int_power.py new file mode 100644 index 000000000..a5a9a5b7a --- /dev/null +++ b/tests/float/int_power.py @@ -0,0 +1,8 @@ +# negative power should produce float + +x = 2 +print(x ** -2) + +x = 3 +x **= -2 +print(x) -- cgit v1.2.3