Skip to content

Commit

Permalink
correct failed .NET test
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcl authored and alfonsogarciacaro committed Aug 31, 2018
1 parent dabd7b8 commit 1442afc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/js/fable-core/Long.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ export function fromInteger(value, unsigned, kind) {
case 2: x = value >> 0; xh = x; break;
case 6: x = value >>> 0;
}
if (unsigned) xh = 0;
return fromBits(x, xh >> 31, unsigned);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Main/ConvertTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ let tests =
testCase "Special cases conversion to/from Int64 work" <| fun () ->
let xn = -1L
let xnu = 0xFFFFFFFFFFFFFFFFuL
-1 |> uint64 |> equal 0xFFFFFFFFuL
-1 |> uint64 |> equal xnu
0xFFFFFFFFu |> int64 |> equal 0xFFFFFFFFL
xn |> uint64 |> equal xnu
xnu |> int64 |> equal -1L
Expand Down

0 comments on commit 1442afc

Please sign in to comment.