Skip to content

FloatingPointEquality: net11.0, xUnit asserts, BenchmarkDotNet 0.15.8 - #2447

Open
vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/95313-csharp-floating-point-equality
Open

vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/95313-csharp-floating-point-equality

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

Moves the floating-point equality sample to net11.0. FluentAssertions is removed and the 60 tests use xUnit's own asserts on xunit 2.9.3. BenchmarkDotNet goes to 0.15.8 with [InProcess]. The ULP methods call the static IsNegative methods instead of a private extension, AllowUnsafeBlocks is dropped since nothing is unsafe, the powers-of-ten table is a collection expression, and the console sample gains the BitConverter, negative zero and double.Epsilon lines the article prints.

…t 0.15.8

Retarget all four projects to net11.0. Remove FluentAssertions and use xUnit's own asserts. Update xunit, the runner, the test SDK and coverlet. BenchmarkDotNet 0.15.8 with [InProcess]. Use the static IsNegative methods instead of a private extension, drop AllowUnsafeBlocks, use a collection expression for the powers-of-ten table, and add the BitConverter, negative zero and double.Epsilon lines to the console sample.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant