Description
When running unittest GlobaltoolsNETCore21Part03 on the latest build dotnet-sdk-11.0.100-preview.7.26366.102, there is a case failed with error: Expected: <Decimal 14.1M> But was: <Decimal 14.099999999999999644728632120M>.
Reproduction Steps
Machine with dotnet-sdk-11.0.100-preview.7.26366.102 installed only and set environment variable “DOTNET_ROLL_FORWARD_ON_NO_CANDIDATE_FX” to 2.
- Run
cmd in "C:\Users\test01\Desktop\GlobalToolsNETCore21Part03Test05".
- Execute command: "
dotnet vstest FSharpLint.Core.Tests.dll".
Expected behavior
Passed! - Failed: 0, Passed: 577, Skipped: 0, Total: 577.
Actual behavior
Failed Decimal [103 ms]
Error Message:
Expected: <Decimal 14.1M>
But was: <Decimal 14.099999999999999644728632120M>
Stack Trace:
at TestHintParser.TestConstantParser.Decimal() in C:\AppCompat\Unitest\FSharpLint-master\tests\FSharpLint.Core.Tests\Framework\TestHintParser.fs:line 352
Failed! - Failed: 1, Passed: 576, Skipped: 0, Total: 577, Duration: 48 s - FSharpLint.Core.Tests.dll (netcoreapp2.1)
Regression?
Yes
Verify Scenarios:
1). Windows 11 24H2 AMD64 + dotnet-sdk-11.0.100-preview.7.26363.123: Pass
2). Windows 11 24H2 AMD64 + dotnet-sdk-11.0.100-preview.7.26366.102: Fail
Known Workarounds
No response
Configuration
Application Name: GlobaltoolsNETCore21Part03, NetTopologySuite, CryptoExchangeNet
OS: Windows 11 24H2
CPU: X64
.NET Build Number: dotnet-sdk-11.0.100-preview.7.26366.102
App & Source checking at: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/3035127
Other information
dotnet --info
.NET SDK:
Version: 11.0.100-preview.7.26366.102
Commit: d2b524965e
Workload version: 11.0.100-manifests.a03339c4
MSBuild version: 18.10.0-1.26366.102+d2b524965
Runtime Environment:
OS Name: Windows
OS Version: 10.0.26100
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\11.0.100-preview.7.26366.102\
.NET workloads installed:
There are no installed workloads to display.
Configured to use workload sets when installing new manifests.
No workload sets are installed. Run "dotnet workload restore" to install a workload set.
Host:
Version: 11.0.0-preview.7.26366.102
Architecture: x64
Commit: d2b524965e
.NET SDKs installed:
11.0.100-preview.7.26366.102 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 11.0.0-preview.7.26366.102 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 11.0.0-preview.7.26366.102 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 11.0.0-preview.7.26366.102 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
@dotnet-actwx-bot @dotnet/compat
Description
When running unittest GlobaltoolsNETCore21Part03 on the latest build dotnet-sdk-11.0.100-preview.7.26366.102, there is a case failed with error:
Expected: <Decimal 14.1M> But was: <Decimal 14.099999999999999644728632120M>.Reproduction Steps
Machine with dotnet-sdk-11.0.100-preview.7.26366.102 installed only and set environment variable “DOTNET_ROLL_FORWARD_ON_NO_CANDIDATE_FX” to 2.
cmdin "C:\Users\test01\Desktop\GlobalToolsNETCore21Part03Test05".dotnet vstest FSharpLint.Core.Tests.dll".Expected behavior
Passed! - Failed: 0, Passed: 577, Skipped: 0, Total: 577.
Actual behavior
Failed Decimal [103 ms]
Regression?
Yes
Verify Scenarios:
1). Windows 11 24H2 AMD64 + dotnet-sdk-11.0.100-preview.7.26363.123: Pass
2). Windows 11 24H2 AMD64 + dotnet-sdk-11.0.100-preview.7.26366.102: Fail
Known Workarounds
No response
Configuration
Application Name: GlobaltoolsNETCore21Part03, NetTopologySuite, CryptoExchangeNet
OS: Windows 11 24H2
CPU: X64
.NET Build Number: dotnet-sdk-11.0.100-preview.7.26366.102
App & Source checking at: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/3035127
Other information
dotnet --info
@dotnet-actwx-bot @dotnet/compat