mirror of
https://github.com/LiteyukiStudio/magicoca.git
synced 2025-09-06 03:56:41 +00:00
✨ 新增select语句
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import time
|
||||
from select import select
|
||||
|
||||
from magicoca.chan import Chan
|
||||
from multiprocessing import Process, set_start_method
|
||||
@ -21,6 +22,7 @@ def p2f(chan: Chan[int]):
|
||||
if recv_ans != list(range(10)) + [-1]:
|
||||
raise ValueError("Chan Shift Test Failed")
|
||||
|
||||
|
||||
class TestChan:
|
||||
|
||||
def test_test(self):
|
||||
@ -63,3 +65,6 @@ class TestChan:
|
||||
p2.start()
|
||||
p1.join()
|
||||
p2.join()
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user