Skip to content

NUnit 3.13.2 : LessThanOrEqualTo fails on a case which should succeed #3898

Closed
@ydubernet

Description

@ydubernet

On latest 3.13.2 version, I have this unexpected behaviour :
image

I expect the output number to be less than or equal to the initial number, it is the case, and yet the test execution context throws an AssertionException.

Here is a code example :

[Test, Repeat(1000)]
public void Test()
{
    var floor1 = 95217168582.206969750145956m;
    var floor2 = 95217168582.20696975014595521m;
    Assert.That(floor2, Is.LessThanOrEqualTo(floor1));
}

For your interest, I have tried to reproduce it in version 3.13.1 and it does not fail.
Hence it looks linked to a bug in between 3.13.1 and 3.13.2.

Best regards

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions