• R/O
  • SSH

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Castle: The best Real-Time/Embedded/HighTech language EVER. Attempt 2


Commit MetaInfo

修訂f20c8f117f1ae015669cb4e7fc979e003102b638 (tree)
時間2024-03-11 00:12:37
作者Albert Mietus < albert AT mietus DOT nl >
CommiterAlbert Mietus < albert AT mietus DOT nl >

Log Message

refactored import-structure: handle it in other packages.Also: @pytest/skip generating Specialise Slowstart_1 -- need tto desiingn it first

Change Summary

差異

diff -r e374e29f86d6 -r f20c8f117f1a TestDoubles_packages/TestDoubles-aigr-sieve/castle/TESTDOUBLES/aigr/sieve/protocols.py
--- a/TestDoubles_packages/TestDoubles-aigr-sieve/castle/TESTDOUBLES/aigr/sieve/protocols.py Sun Mar 10 15:42:08 2024 +0100
+++ b/TestDoubles_packages/TestDoubles-aigr-sieve/castle/TESTDOUBLES/aigr/sieve/protocols.py Sun Mar 10 16:12:37 2024 +0100
@@ -1,7 +1,7 @@
11 # (C) Albert Mietus, 2023. Part of Castle/CCastle project
22
33 from castle.aigr import EventProtocol, Event, ID
4-from castle.aigr.aid import TypedParameter, Argument, Specialise
4+from castle.aigr import TypedParameter, Argument, Specialise
55
66
77 StartSieve = EventProtocol(ID('StartSieve'),
diff -r e374e29f86d6 -r f20c8f117f1a TestDoubles_packages/TestDoubles-aigr-sieve/pytst/test_1_sieve_protocols.py
--- a/TestDoubles_packages/TestDoubles-aigr-sieve/pytst/test_1_sieve_protocols.py Sun Mar 10 15:42:08 2024 +0100
+++ b/TestDoubles_packages/TestDoubles-aigr-sieve/pytst/test_1_sieve_protocols.py Sun Mar 10 16:12:37 2024 +0100
@@ -5,7 +5,7 @@
55
66 import pytest
77
8-import castle.aigr as aigr
8+from castle import aigr
99 from castle.TESTDOUBLES.aigr.sieve import protocols
1010 from . import verify_Protocol
1111
@@ -15,7 +15,7 @@
1515 assert isinstance(p, aigr.EventProtocol)
1616
1717 for p in (protocols.SlowStart_1,):
18- assert isinstance(p, aigr.aid.Specialise)
18+ assert isinstance(p, aigr.Specialise)
1919 assert isinstance(p.based_on, aigr.EventProtocol)
2020
2121 def test_1_StartSieve():
@@ -33,7 +33,7 @@
3333
3434 def test_2_SlowStart_1():
3535 p = protocols.SlowStart_1
36- verify_Protocol(p, name="SlowStart_1", cls=aigr.aid.Specialise, base=protocols.SlowStart, event_names=['setMax'])
36+ verify_Protocol(p, name="SlowStart_1", cls=aigr.Specialise, base=protocols.SlowStart, event_names=['setMax'])
3737
3838
3939
diff -r e374e29f86d6 -r f20c8f117f1a core_packages/castle-RPy-writer/pytst/test_3_SieveProtocols.py
--- a/core_packages/castle-RPy-writer/pytst/test_3_SieveProtocols.py Sun Mar 10 15:42:08 2024 +0100
+++ b/core_packages/castle-RPy-writer/pytst/test_3_SieveProtocols.py Sun Mar 10 16:12:37 2024 +0100
@@ -21,6 +21,7 @@
2121 def test_02_SlowStart(generatedProtocol_verifier):
2222 generatedProtocol_verifier(aigr_mocks=sieve.SlowStart, td=TstDoubles('protocols/slow_start'), strip_remarker=True)
2323
24+@pytest.mark.xfail(reason="Need to design (the generated code) for Specialise/Generic Protocols")
2425 def test_03_SimpleSieve_withGeneric(generatedProtocol_verifier):
2526 """``SimpleSieve`` depend on the instantiated generic ``SlowStart_1``.
2627 They are in the same namespace and (so) need to be rendered in the same file.