arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2205.11837math.NAcs.NA
收藏

测试区间运算库,包括其IEEE-1788符合性

Testing interval arithmetic libraries, including their IEEE-1788 compliance

Nathalie Revol, Luis Benet, Luca Ferranti, Sergei Zhilin

摘要:

作为实现区间运算的库的开发人员,我们在测试库时面临着同样的困难。必须测试什么?我们如何为单元测试设计相关的测试用例?我们如何确保高(可能是100%)的测试覆盖率?在本文中,我们列出了不同的方面,在我们看来,必须进行测试,给出测试用例的选择指示。然后我们研究几个区间运算库实际上是如何执行测试的。接下来,我们将介绍两个专门用于收集测试用例并轻松合并新库以进行测试的框架,即JInterval和ITF1788。并不是我们库的每个重要方面都适合这些框架,我们列出了我们认为重要但不容易执行的额外测试。

英文摘要:

As developers of libraries implementing interval arithmetic, we faced the same difficulties when it came 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? In this paper we list the different aspects that, in our opinion, must be tested, giving indications on the choice of test cases. Then we examine how several interval arithmetic libraries actually perform tests. Next, we introduce two frameworks developed specifically to gather test cases and to incorporate easily new libraries in order to test them, namely JInterval and ITF1788. Not every important aspects of our libraries fit in these frameworks and we list extra tests that we deem important, but not easy, to perform.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑