一个用于测试区间算术库及其 IEEE 1788-2015 合规性的框架
A framework to test interval arithmetic libraries and their IEEE 1788-2015 compliance
AI总结:
本文提出区间算术库测试框架,定义可交换的测试用例格式,提供首批数学函数测试,并评估 IntervalArithmetic.jl 的 IEEE 1788-2015 合规表现。
摘要:
作为实现区间算术的库的开发者,我们在测试自己的库时遇到了同样的困难。必须测试什么?我们如何为单元测试设计相关的测试用例?我们如何确保较高(并可能达到 100%)的测试覆盖率?在考虑这些问题之前,我们简要回顾区间算术以及区间算术 IEEE 1788-2015 标准的主要特性。在列出我们认为必须测试的不同方面之后,我们为提供区间算术库测试套件贡献了第一步。首先,我们定义一种能够交换测试用例的格式,以便这些用例可以被轻松读取和试用。随后,我们针对一组选定的数学函数提供第一组测试用例。接下来,我们考察 Julia 区间算术库 IntervalArithmetic.jl 在这些测试上的实际表现。由于这是一项仍在进行中的工作,我们还列出了我们认为有必要执行的额外测试。
英文摘要:
As developers of libraries implementing interval arithmetic, we faced the same difficulties when it comes to testing our libraries. What must be tested? How can we devise relevant test cases for unit testing? How can we ensure a high (and possibly 100%) test coverage? Before considering these questions, we briefly recall the main features of interval arithmetic and of the IEEE 1788-2015 standard for interval arithmetic. After listing the different aspects that, in our opinion, must be tested, we contribute a first step towards offering a test suite for an interval arithmetic library. First we define a format that enables the exchange of test cases, so that they can be read and tried easily. Then we offer a first set of test cases, for a selected set of mathematical functions. Next, we examine how the Julia interval arithmetic library, IntervalArithmetic.jl, actually performs to these tests. As this is an ongoing work, we list extra tests that we deem important to perform.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。