We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7274c6 commit da3f40aCopy full SHA for da3f40a
tests/FSharp.Core.UnitTests/FSharp.Core/PrimTypes.fs
@@ -816,3 +816,16 @@ type RangeTests() =
816
if System.UIntPtr.Size >= 8 then RangeTestsHelpers.unsigned (System.UIntPtr System.UInt64.MinValue) (System.UIntPtr System.UInt64.MaxValue)
817
818
819
+open NonStructuralComparison
820
+
821
822
+[<TestFixture>]
823
+type NonStructuralComparisonTests() =
824
825
+ [<Test>]
826
+ member __.CompareFloat32() = // https://github.com/Microsoft/visualfsharp/pull/4493
827
828
+ let x = 32 |> float32
829
+ let y = 32 |> float32
830
+ let comparison = compare x y
831
+ Assert.AreEqual(0, comparison)
0 commit comments