Skip to content

Commit

Permalink
Fix previous commit for test/2-3 dialects with deterministic outcome
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoura committed Feb 17, 2018
1 parent 535e73c commit 1094e9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/lgtunit/lgtunit.lgt
Expand Up @@ -1030,7 +1030,7 @@
parse_test_options(Options, Goal0, Test, Condition, Setup, Cleanup, Note),
( Outcome == true ->
assertz(test_(Test, succeeds(Test, Variables, Position, Condition, Setup, Cleanup, Note)))
; Outcome == deterministic ->
; Outcome = deterministic(_) ->
assertz(test_(Test, deterministic(Test, Variables, Position, Condition, Setup, Cleanup, Note)))
; Outcome == fail ->
assertz(test_(Test, fails(Test, Variables, Position, Condition, Setup, Cleanup, Note)))
Expand All @@ -1046,7 +1046,7 @@
logtalk_load_context(term_position, Position),
( Outcome == true ->
assertz(test_(Test, succeeds(Test, Position)))
; Outcome == deterministic ->
; Outcome = deterministic(_) ->
assertz(test_(Test, deterministic(Test, Position)))
; Outcome == fail ->
assertz(test_(Test, fails(Test, Position)))
Expand Down

0 comments on commit 1094e9d

Please sign in to comment.