private static Matcher within(double epsilon, double value) {
return new BaseMatcher() {
@Override
public void describeTo(Description description) {
description.appendText("within ")
.appendText(Double.toString(epsilon))
.appendText(" of ")
.appendText(Double.toString(value));
}
@Override
public boolean matches(Object item) {
return item instanceof Double && Math.abs(((Double)item) - value) < epsilon;
}
};
}
KLambdaTest.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:shen-truffle
作者:
评论列表
文章目录