Unit testing, assert equals if difference is not bigger than 1

前端 未结 0 1423
耶瑟儿~
耶瑟儿~ 2021-02-02 17:05

Im new to Unit testing. I use Junit4, I have to compare two double numbers. But if difference is not longer than 1, it should pass. For example:

Assert.assertEqua         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题