From 64ec4421dff6f723665f4200a6d031286df4f02a Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 16 Jul 2019 17:44:48 +0100 Subject: [PATCH] increase test range, add loop --- src/ieee754/fcvt/test/test_fcvt_pipe.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/ieee754/fcvt/test/test_fcvt_pipe.py b/src/ieee754/fcvt/test/test_fcvt_pipe.py index 4041ddd6..28735360 100644 --- a/src/ieee754/fcvt/test/test_fcvt_pipe.py +++ b/src/ieee754/fcvt/test/test_fcvt_pipe.py @@ -14,18 +14,22 @@ def fcvt_32(x): def test_down_pipe_fp32_16(): dut = FPCVTDownMuxInOut(32, 16, 4) - runfp(dut, 32, "test_fcvt_down_pipe_fp32_16", Float32, fcvt_16, True) + runfp(dut, 32, "test_fcvt_down_pipe_fp32_16", Float32, fcvt_16, True, + n_vals=100) def test_down_pipe_fp64_16(): dut = FPCVTDownMuxInOut(64, 16, 4) - runfp(dut, 64, "test_fcvt_down_pipe_fp64_16", Float64, fcvt_16, True) + runfp(dut, 64, "test_fcvt_down_pipe_fp64_16", Float64, fcvt_16, True, + n_vals=100) def test_down_pipe_fp64_32(): dut = FPCVTDownMuxInOut(64, 32, 4) - runfp(dut, 64, "test_fcvt_down_pipe_fp64_32", Float64, fcvt_32, True) + runfp(dut, 64, "test_fcvt_down_pipe_fp64_32", Float64, fcvt_32, True, + n_vals=100) if __name__ == '__main__': - test_down_pipe_fp64_16() - test_down_pipe_fp32_16() - test_down_pipe_fp64_32() + for i in range(200): + test_down_pipe_fp64_16() + test_down_pipe_fp32_16() + test_down_pipe_fp64_32() -- 2.30.2