Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5d40b91

Browse files
committed
fix unit test to just check sign of result
1 parentd14b028 commit5d40b91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/fsharp/FSharp.Core.Unittests/FSharp.Core/PrimTypes.fs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ type LanguagePrimitivesModule() =
103103

104104
// reference type
105105
letresultRef= LanguagePrimitives.GenericComparison"ABC""ABCDE"
106-
Assert.AreEqual(resultRef,-68)
106+
Assert.AreEqual(signresultRef,-1)
107107

108108
// null reference
109109
letresultRef= LanguagePrimitives.GenericComparison"ABC"null
@@ -126,7 +126,7 @@ type LanguagePrimitivesModule() =
126126

127127
// reference type
128128
letresultRef= LanguagePrimitives.GenericComparisonWithComparer System.Collections.Comparer.Default"ABC""ABCDE"
129-
Assert.AreEqual(resultRef,-68)
129+
Assert.AreEqual(signresultRef,-1)
130130

131131
// null reference
132132
letresultRef= LanguagePrimitives.GenericComparisonWithComparer System.Collections.Comparer.Default"ABC"null

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp