Skip to content

VectorSingle and VectorDoubleEqualsNonCanonicalNaNTest fails on Mono #74781

@steveisok

Description

@steveisok

From the logs, the Assert.False is failing

Assert.False(new Vector<float>(i) == new Vector<float>(j));

It is tough to tell which nan value is the cause:

float.CopySign(float.NaN, -0.0f), // -qnan same as float.NaN
float.CopySign(float.NaN, +0.0f), // +qnan
float.CopySign(snan, -0.0f), // -snan
float.CopySign(snan, +0.0f), // +snan

Stack trace:

Assert.False() Failure\nExpected: False\nActual:   True
at System.Numerics.Tests.GenericVectorTests.VectorSingleEqualsNonCanonicalNaNTest() in /_/src/libraries/System.Numerics.Vectors/tests/GenericVectorTests.cs:line 893
   at System.Reflection.MethodInvoker.InterpretedInvoke(Object obj, Span`1 args, BindingFlags invokeAttr)]]
Assert.False() Failure\nExpected: False\nActual:   True
at System.Numerics.Tests.GenericVectorTests.VectorDoubleEqualsNonCanonicalNaNTest() in /_/src/libraries/System.Numerics.Vectors/tests/GenericVectorTests.cs:line 869
   at System.Reflection.MethodInvoker.InterpretedInvoke(Object obj, Span`1 args, BindingFlags invokeAttr)]]

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions