Skip to content

Commit 3650fac

Browse files
Fix for Equality check on floating point values
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent a2c358e commit 3650fac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MandMCounter.Tests/Controllers/PeanutMandMControllerTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public void ControllerCountPeanutMandMsInA1CubicCMTest()
4343
float result = controller.GetDataForRectangle(unit, height, width, length);
4444

4545
//Assert
46-
Assert.IsTrue(System.Math.Round(result, 0) == 764f);
46+
Assert.IsTrue((int)System.Math.Round(result, 0) == (int)764f);
4747
}
4848

4949
#endregion

0 commit comments

Comments
 (0)