[Pkg-cli-apps-commits] [fsharp] 02/05: fix unit test to just check sign of result

Christopher Halse Rogers raof-guest at moszumanska.debian.org
Fri Jan 17 05:18:19 UTC 2014


This is an automated email from the git hooks/post-receive script.

raof-guest pushed a commit to tag 3.1.1
in repository fsharp.

commit 4981f9d5e8db5531e349cc09145aba5ea5fad4b2
Author: Don Syme <donsyme at fastmail.fm>
Date:   Mon Dec 30 14:24:44 2013 +0100

    fix unit test to just check sign of result
---
 src/fsharp/FSharp.Core.Unittests/FSharp.Core/PrimTypes.fs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/fsharp/FSharp.Core.Unittests/FSharp.Core/PrimTypes.fs b/src/fsharp/FSharp.Core.Unittests/FSharp.Core/PrimTypes.fs
index 4892867..1f1ba7a 100755
--- a/src/fsharp/FSharp.Core.Unittests/FSharp.Core/PrimTypes.fs
+++ b/src/fsharp/FSharp.Core.Unittests/FSharp.Core/PrimTypes.fs
@@ -103,7 +103,7 @@ type LanguagePrimitivesModule() =
         
         // reference type
         let resultRef = LanguagePrimitives.GenericComparison "ABC" "ABCDE"
-        Assert.AreEqual(resultRef,-68)
+        Assert.AreEqual(sign resultRef,-1)
         
         // null reference
         let resultRef = LanguagePrimitives.GenericComparison "ABC" null
@@ -126,7 +126,7 @@ type LanguagePrimitivesModule() =
         
         // reference type
         let resultRef = LanguagePrimitives.GenericComparisonWithComparer System.Collections.Comparer.Default "ABC" "ABCDE"
-        Assert.AreEqual(resultRef,-68)
+        Assert.AreEqual(sign resultRef,-1)
         
         // null reference
         let resultRef = LanguagePrimitives.GenericComparisonWithComparer System.Collections.Comparer.Default "ABC" null

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-cli-apps/packages/fsharp.git



More information about the Pkg-cli-apps-commits mailing list