Skip to content

Commit 9960415

Browse files
authored
Re-enable some binary specifier tests (#117304)
1 parent 91d7d53 commit 9960415

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

src/libraries/System.Runtime/tests/System.Runtime.Tests/System/Int128Tests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,7 @@ public static IEnumerable<object[]> Parse_Invalid_TestData()
365365
foreach (object[] objs in Int32Tests.Parse_Invalid_TestData())
366366
{
367367
if ((Type)objs[3] == typeof(OverflowException) &&
368-
(((NumberStyles)objs[1] & NumberStyles.AllowBinarySpecifier) != 0 || // TODO https://github.com/dotnet/runtime/issues/83619: Remove once BigInteger supports binary parsing
369-
!BigInteger.TryParse((string)objs[0], (NumberStyles)objs[1], null, out BigInteger bi) ||
368+
(!BigInteger.TryParse((string)objs[0], (NumberStyles)objs[1], null, out BigInteger bi) ||
370369
(bi >= Int128.MinValue && bi <= Int128.MaxValue)))
371370
{
372371
continue;

src/libraries/System.Runtime/tests/System.Runtime.Tests/System/Int64Tests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,7 @@ public static IEnumerable<object[]> Parse_Invalid_TestData()
303303
foreach (object[] objs in Int32Tests.Parse_Invalid_TestData())
304304
{
305305
if ((Type)objs[3] == typeof(OverflowException) &&
306-
(((NumberStyles)objs[1] & NumberStyles.AllowBinarySpecifier) != 0 || // TODO https://github.com/dotnet/runtime/issues/83619: Remove once BigInteger supports binary parsing
307-
!BigInteger.TryParse((string)objs[0], (NumberStyles)objs[1], null, out BigInteger bi) ||
306+
(!BigInteger.TryParse((string)objs[0], (NumberStyles)objs[1], null, out BigInteger bi) ||
308307
(bi >= long.MinValue && bi <= long.MaxValue)))
309308
{
310309
continue;

src/libraries/System.Runtime/tests/System.Runtime.Tests/System/UInt128Tests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,7 @@ public static IEnumerable<object[]> Parse_Invalid_TestData()
294294
foreach (object[] objs in Int128Tests.Parse_Invalid_TestData())
295295
{
296296
if ((Type)objs[3] == typeof(OverflowException) &&
297-
(((NumberStyles)objs[1] & NumberStyles.AllowBinarySpecifier) != 0 || // TODO https://github.com/dotnet/runtime/issues/83619: Remove once BigInteger supports binary parsing
298-
!BigInteger.TryParse((string)objs[0], (NumberStyles)objs[1], null, out BigInteger bi) ||
297+
(!BigInteger.TryParse((string)objs[0], (NumberStyles)objs[1], null, out BigInteger bi) ||
299298
bi <= UInt128.MaxValue))
300299
{
301300
continue;

src/libraries/System.Runtime/tests/System.Runtime.Tests/System/UInt64Tests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,7 @@ public static IEnumerable<object[]> Parse_Invalid_TestData()
276276
foreach (object[] objs in Int64Tests.Parse_Invalid_TestData())
277277
{
278278
if ((Type)objs[3] == typeof(OverflowException) &&
279-
(((NumberStyles)objs[1] & NumberStyles.AllowBinarySpecifier) != 0 || // TODO https://github.com/dotnet/runtime/issues/83619: Remove once BigInteger supports binary parsing
280-
!BigInteger.TryParse((string)objs[0], (NumberStyles)objs[1], null, out BigInteger bi) ||
279+
(!BigInteger.TryParse((string)objs[0], (NumberStyles)objs[1], null, out BigInteger bi) ||
281280
bi <= ulong.MaxValue))
282281
{
283282
continue;

0 commit comments

Comments
 (0)