• R/O
  • SSH

Commit

Tags
Aucun tag

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

Révision18eb6ff53f92f3b239538ec666eeb26c305ccf7b (tree)
l'heure2023-10-11 04:51:30
AuteurAlbert Mietus < albert AT mietus DOT nl >
CommiterAlbert Mietus < albert AT mietus DOT nl >

Message de Log

(re)Added ConsecutiveSeries test for ProtocolKind, to remove surviving mutants

Change Summary

Modification

diff -r 6fbe94c22078 -r 18eb6ff53f92 pytst/aigr/test_2a_protocolKind.py
--- a/pytst/aigr/test_2a_protocolKind.py Tue Oct 10 18:10:05 2023 +0200
+++ b/pytst/aigr/test_2a_protocolKind.py Tue Oct 10 21:51:30 2023 +0200
@@ -14,3 +14,12 @@
1414 assert ProtocolKind.Event
1515 assert ProtocolKind.Data
1616 assert ProtocolKind.Stream
17+
18+def test_2_ConsecutiveSeries():
19+ values = sorted(k.value for k in ProtocolKind)
20+ v1 = values[0]
21+ for v2 in values[1:]:
22+ assert v1+1==v2, f"{ProtocolKind(v1)}+1 <> {ProtocolKind(v2)}"
23+ v1=v2
24+
25+