我是靠谱客的博主 怕孤独饼干,这篇文章主要介绍The method assertEquals(double, double) from the type Assert is deprecated,现在分享给大家,希望可以做个参考。

   从网上下载的视频,看着视频做。居然和人家的不一样。

assertEquals(double expected,double actul) 被废弃了,换成assertEquals(double expected,double actul,double delta)

也就是在原来的方法上加一个误差值(double类型)

官方解释为:

 

最后

以上就是怕孤独饼干最近收集整理的关于The method assertEquals(double, double) from the type Assert is deprecated的全部内容,更多相关The内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(103)

评论列表共有 0 条评论

立即
投稿
返回
顶部