File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,11 @@ func TestIicCounter(t *testing.T) {
6868 carry = trans .And (carry , m )
6969 }
7070 mc := New (trans , carry )
71- if mc .Try () != 1 {
71+ switch mc .Try () {
72+ case 1 :
73+ case 0 :
74+ t .Logf ("iic timed out" )
75+ case - 1 :
7276 t .Errorf ("got ind, expected cex" )
7377 }
7478}
@@ -87,7 +91,11 @@ func TestIicNotCounter(t *testing.T) {
8791 }
8892 trans .SetNext (ms [N - 1 ], trans .And (trans .Next (ms [N - 1 ]), ms [0 ].Not ()))
8993 mc := New (trans , carry )
90- if mc .Try () != - 1 {
94+ switch mc .Try () {
95+ case - 1 :
96+ case 0 :
97+ t .Logf ("timed out..." )
98+ case 1 :
9199 t .Errorf ("got cex, expected inv" )
92100 }
93101}
@@ -107,7 +115,11 @@ func TestIicFifo(t *testing.T) {
107115 all = trans .And (all , m )
108116 }
109117 mc := New (trans , all )
110- if mc .Try () != 1 {
118+ switch mc .Try () {
119+ case 1 :
120+ case 0 :
121+ t .Logf ("timed out.\n " )
122+ case - 1 :
111123 t .Errorf ("got ind, expected cex" )
112124 }
113125}
You can’t perform that action at this time.
0 commit comments