Skip to content

Commit a27df0f

Browse files
committed
remove old workarond
1 parent 656ad40 commit a27df0f

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

tests/FSharp.Core.UnitTests/FSharp.Core/OperatorsModule2.fs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -447,15 +447,13 @@ type OperatorsModule2() =
447447
if not Info.isNetFramework then
448448
Assert.AreEqual(9223372036854775807n, result)
449449
else
450-
// Cannot express this as a literal, see https://github.com/dotnet/fsharp/issues/9524
451-
Assert.AreEqual("-9223372036854775808", string result)
450+
Assert.AreEqual(-9223372036854775808n, string result)
452451

453452
let result = Operators.nativeint System.Double.MinValue
454453
if Info.isX86Runtime then
455454
Assert.AreEqual(-2147483648n, result)
456455
else
457-
// Cannot express this as a literal, see https://github.com/dotnet/fsharp/issues/9524
458-
Assert.AreEqual("-9223372036854775808", string result)
456+
Assert.AreEqual(-9223372036854775808n, string result)
459457

460458
// Max and min value as literals (this breaks compilation if the lexer fails).
461459
// The following tests ensure that the proper value is parsed, which is similar to `nativeint Int64.MaxValue` etc.

tests/FSharp.Core.UnitTests/FSharp.Core/OperatorsModuleDynamic.fs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -543,15 +543,13 @@ module OperatorsModuleDynamic =
543543
if not Info.isNetFramework then
544544
Assert.AreEqual(9223372036854775807n, result)
545545
else
546-
// Cannot express this as a literal, see https://github.com/dotnet/fsharp/issues/9524
547-
Assert.AreEqual("-9223372036854775808", string result)
546+
Assert.AreEqual(-9223372036854775808n, string result)
548547

549548
let result = Operators.nativeint System.Double.MinValue
550549
if Info.isX86Runtime then
551550
Assert.AreEqual(-2147483648n, result)
552551
else
553-
// Cannot express this as a literal, see https://github.com/dotnet/fsharp/issues/9524
554-
Assert.AreEqual("-9223372036854775808", string result)
552+
Assert.AreEqual(-9223372036854775808n, string result)
555553

556554
// Max and min value as literals (this breaks compilation if the lexer fails).
557555
// The following tests ensure that the proper value is parsed, which is similar to `nativeint Int64.MaxValue` etc.

0 commit comments

Comments
 (0)