In my program I have a number of rules, each "firing" based on a different precondition and current state. One such rule's purpose is to identify a special illegal condition, that is known to occur, and then explicitly invoke backtracking via a fail.
I now included a trace -- a list a visited rules -- as parameters, and noticed that for all, but this rule, i can include in this list. However, since that one rules behavior is to fail, i don't see a way to capture the firing of this rule in a trace.
This trace is important to me, since in I am writing test code, and in that code, i test each possible condition and whether it lead to the firing of a rule -- that the requisite rule fired, i can retrieve from the trace. All, but, as said, for this one rule.
Is there a way around this ... looks like i am trying to square the circle here :-)
thank you,
Dan