Skip to content

Commit ea2a224

Browse files
committed
Add 1e1000 case
1 parent 5bb1a93 commit ea2a224

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Lib/test/test_patma.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2842,6 +2842,16 @@ def test_patma_265(self):
28422842
self.assertEqual(x, 0.25 - 1.75j)
28432843
self.assertEqual(y, 0)
28442844

2845+
def test_patma_266(self):
2846+
x = 0
2847+
match x:
2848+
case +1e1000:
2849+
y = 0
2850+
case 0:
2851+
y = 1
2852+
self.assertEqual(x, 0)
2853+
self.assertEqual(y, 1)
2854+
28452855
def test_patma_runtime_checkable_protocol(self):
28462856
# Runtime-checkable protocol
28472857
from typing import Protocol, runtime_checkable

0 commit comments

Comments
 (0)