@@ -1652,7 +1652,8 @@ end
1652
1652
@test isa (0b0000000000000000000000000000000000000000000000000000000000000000 ,UInt64)
1653
1653
@test isa (0b00000000000000000000000000000000000000000000000000000000000000000 ,UInt128)
1654
1654
@test isa (0b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ,UInt128)
1655
- @test isa (0b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ,BigInt)
1655
+ # @test isa(0b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,BigInt)
1656
+ @test_throws ParseError parse (" 0b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" )
1656
1657
@test isa (0b11111111 ,UInt8)
1657
1658
@test isa (0b111111111 ,UInt16)
1658
1659
@test isa (0b1111111111111111 ,UInt16)
@@ -1662,7 +1663,8 @@ end
1662
1663
@test isa (0b1111111111111111111111111111111111111111111111111111111111111111 ,UInt64)
1663
1664
@test isa (0b11111111111111111111111111111111111111111111111111111111111111111 ,UInt128)
1664
1665
@test isa (0b11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 ,UInt128)
1665
- @test isa (0b111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111 ,BigInt)
1666
+ # @test isa(0b111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111,BigInt)
1667
+ @test_throws ParseError parse (" 0b111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111" )
1666
1668
1667
1669
# octal literals
1668
1670
@@ -1680,7 +1682,8 @@ end
1680
1682
@test isa (0o000000000000000000000 ,UInt64)
1681
1683
@test isa (0o0000000000000000000000 ,UInt128)
1682
1684
@test isa (0o000000000000000000000000000000000000000000 ,UInt128)
1683
- @test isa (0o0000000000000000000000000000000000000000000 ,BigInt)
1685
+ # @test isa(0o0000000000000000000000000000000000000000000,BigInt)
1686
+ @test_throws ParseError parse (" 0o0000000000000000000000000000000000000000000" )
1684
1687
@test isa (0o11 ,UInt8)
1685
1688
@test isa (0o111 ,UInt8)
1686
1689
@test isa (0o11111 ,UInt16)
@@ -1691,10 +1694,10 @@ end
1691
1694
@test isa (0o1111111111111111111111 ,UInt64)
1692
1695
@test isa (0o111111111111111111111111111111111111111111 ,UInt128)
1693
1696
@test isa (0o1111111111111111111111111111111111111111111 ,UInt128)
1694
- @test isa (0o11111111111111111111111111111111111111111111 ,BigInt)
1695
- @test 0o4000000000000000000000000000000000000000000 ==
1696
- 340282366920938463463374607431768211456
1697
-
1697
+ # @test isa(0o11111111111111111111111111111111111111111111,BigInt)
1698
+ @test_throws ParseError parse ( " 0o11111111111111111111111111111111111111111111 " )
1699
+ # @test 0o4000000000000000000000000000000000000000000 ==
1700
+ # 340282366920938463463374607431768211456
1698
1701
# hexadecimal literals
1699
1702
1700
1703
@test isa (0x00 ,UInt8)
@@ -1706,7 +1709,8 @@ end
1706
1709
@test isa (0x0000000000000000 ,UInt64)
1707
1710
@test isa (0x00000000000000000 ,UInt128)
1708
1711
@test isa (0x00000000000000000000000000000000 ,UInt128)
1709
- @test isa (0x000000000000000000000000000000000 ,BigInt)
1712
+ # @test isa(0x000000000000000000000000000000000,BigInt)
1713
+ @test_throws ParseError parse (" 0x000000000000000000000000000000000" )
1710
1714
@test isa (0x11 ,UInt8)
1711
1715
@test isa (0x111 ,UInt16)
1712
1716
@test isa (0x1111 ,UInt16)
@@ -1716,7 +1720,8 @@ end
1716
1720
@test isa (0x1111111111111111 ,UInt64)
1717
1721
@test isa (0x11111111111111111 ,UInt128)
1718
1722
@test isa (0x11111111111111111111111111111111 ,UInt128)
1719
- @test isa (0x111111111111111111111111111111111 ,BigInt)
1723
+ # @test isa(0x111111111111111111111111111111111,BigInt)
1724
+ @test_throws ParseError parse (" 0x111111111111111111111111111111111" )
1720
1725
1721
1726
# "-" is not part of unsigned literals
1722
1727
@test - 0x10 == - (0x10 )
@@ -1729,17 +1734,18 @@ end
1729
1734
@test - 0o0000000000000000000001 == - (0o0000000000000000000001 )
1730
1735
@test - 0b00000000000000000000000000000000000000000000000000000000000000001 ==
1731
1736
- (0b00000000000000000000000000000000000000000000000000000000000000001 )
1732
- @test - 0x000000000000000000000000000000001 == - (0x000000000000000000000000000000001 )
1733
- @test - 0o0000000000000000000000000000000000000000001 ==
1734
- - (0o0000000000000000000000000000000000000000001 )
1735
- @test - 0b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 ==
1736
- - (0b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 )
1737
+ # @test -0x000000000000000000000000000000001 == -(0x000000000000000000000000000000001)
1738
+ # @test -0o0000000000000000000000000000000000000000001 ==
1739
+ # -(0o0000000000000000000000000000000000000000001)
1740
+ # @test -0b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 ==
1741
+ # -(0b000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001)
1737
1742
1738
1743
@test isa (- 0x00 ,UInt8)
1739
1744
@test isa (- 0x0000000000000000 ,UInt64)
1740
1745
@test isa (- 0x00000000000000000 ,UInt128)
1741
1746
@test isa (- 0x00000000000000000000000000000000 ,UInt128)
1742
- @test isa (- 0x000000000000000000000000000000000 ,BigInt)
1747
+ # @test isa(-0x000000000000000000000000000000000,BigInt)
1748
+ @test_throws ParseError parse (" -0x000000000000000000000000000000000" )
1743
1749
1744
1750
# Float32 literals
1745
1751
@test isa (1f0 ,Float32)
0 commit comments