]> Repositorios git - scryer-prolog.git/commitdiff
make setup of test_166_167 pass
authorMark <[email protected]>
Fri, 30 Jun 2023 00:01:09 +0000 (18:01 -0600)
committerMark <[email protected]>
Sun, 2 Jul 2023 17:10:33 +0000 (11:10 -0600)
tests-pl/iso-conformity-tests.pl

index 39626808315f430783223ba73bddffdf1559091e..31ddc4d39d11d39ad25a1f457c1308af6d1f8728 100644 (file)
@@ -732,7 +732,10 @@ test_164 :- setup_call_cleanup((op(7,fy,p),op(9,yfx,p)),
 
 test_165 :- atom('.''-''.').
 
-test_166_167 :- setup_call_cleanup(current_op(P,xfy,'|'),
+test_166_167 :- setup_call_cleanup((  current_op(P,xfy,'|') ->
+                                      true
+                                   ;  P = 0
+                                   ),
                                    (  op(0,xfy,'|'),
                                       test_syntax_error("(a|b).", syntax_error(incomplete_reduction))),
                                    op(P,xfy,'|')).