You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed several unit tests in System.Math we failing (before I touched it, I swear ;-)). The root cause appears to be that IsNegativeInfinity returns false even though the parameter is negative infinity.
Given that the code is correct, and the debugger shows the correct value before executing the method, I have to assume something is changing the parameter in between the caller and the callee 🤷
How to reproduce
Run the sample code (see screenshot below for results)
Expected behaviour
IsNegativeInfinity() returns true when value is negative infinity.
I noticed several unit tests in System.Math we failing (before I touched it, I swear ;-)).
That's curious... because these run on the AZDO pipeline last May (last time the lib was updated) and they all run fine... 😯
Curious indeed. That gives me a point in history to start investigating from (although a very wide point, maybe an integration test suite would be useful here 🤷 )
Yes these same tests were failing before I started making any changes. I just switched back to main and reconfirmed that they fail with the latest firmware version/emulator.
Library/API/IoT binding
PAL?
Visual Studio version
No response
.NET nanoFramework extension version
No response
Target name(s)
No response
Firmware version
No response
Device capabilities
No response
Description
I noticed several unit tests in System.Math we failing (before I touched it, I swear ;-)). The root cause appears to be that IsNegativeInfinity returns false even though the parameter is negative infinity.
The code in System::Double::IsNegativeInfinity looks correct and I reproduced the logic in an online compiler https://godbolt.org/z/5PWKhhf81 (although not everything is the same)
Given that the code is correct, and the debugger shows the correct value before executing the method, I have to assume something is changing the parameter in between the caller and the callee 🤷
How to reproduce
Run the sample code (see screenshot below for results)
Expected behaviour
IsNegativeInfinity() returns true when value is negative infinity.
Screenshots
Sample project or code
Aditional information
No response
The text was updated successfully, but these errors were encountered: