From 0f8a559a09d8f5133e0eec3303fccb7ea5361bd7 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sun, 17 Feb 2019 14:08:58 +0000 Subject: [PATCH] add unit tests that push the mantissa to zero or close to zero --- src/add/test_add.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/add/test_add.py b/src/add/test_add.py index c5e16a60..d3f62745 100644 --- a/src/add/test_add.py +++ b/src/add/test_add.py @@ -72,6 +72,10 @@ def testbench(dut): yield from check_case(dut, 0x7F7FFFEE, 0xFEFFFFEE, 0x7EFFFFEE) yield from check_case(dut, 0x7F7FFFEE, 0x756CA884, 0x7F7FFFFD) yield from check_case(dut, 0x7F7FFFEE, 0x758A0CF8, 0x7F7FFFFF) + yield from check_case(dut, 0x42500000, 0x51A7A358, 0x51A7A358) + yield from check_case(dut, 0x51A7A358, 0x42500000, 0x51A7A358) + yield from check_case(dut, 0x4E5693A4, 0x42500000, 0x4E5693A5) + yield from check_case(dut, 0x42500000, 0x4E5693A4, 0x4E5693A5) #yield from check_case(dut, 1, 0, 1) #yield from check_case(dut, 1, 1, 1) -- 2.30.2