我将如何为此 Prolog 规则编写测试?
rule(5,jasmine_tea):- symptom(high_cholesterol),symptom(delicate_fragrance).
高性能标记 - 这就是我所拥有的。
FACTS:
question('Do you suffer from anxiety?',anxiety).
symptom(anxiety).
reply(chamomile_tea,'Drink 3 cups of Chamomile tea everyday for a week.').
RULES:
rule(1,chamomile_tea):- symptom(anxiety),symptom(no_sleep).
希望这能让事情变得更清楚一些。