Skip to content

Commit d8e5bdf

Browse files
committed
fix: Update delta value in approximately unit tests for improved precision
1 parent 41e0b15 commit d8e5bdf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/fluentasserts/operations/comparison/approximately.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,10 @@ static foreach (Type; FPTypes) {
188188
expect(testValue).to.not.be.approximately(0.35, 0.00001);
189189
}
190190

191-
@(Type.stringof ~ " values checks approximately with delta 0.001")
191+
@(Type.stringof ~ " values checks approximately with delta 0.0005")
192192
unittest {
193193
Type testValue = cast(Type) 0.351;
194-
expect(testValue).to.not.be.approximately(0.35, 0.001);
194+
expect(testValue).to.not.be.approximately(0.35, 0.0005);
195195
}
196196

197197
@(Type.stringof ~ " 0.351 approximately 0.35 with delta 0.0001 reports error with expected and actual")

0 commit comments

Comments
 (0)