logic-1.scm 258 B

123456789101112
  1. (use-modules (trs examples))
  2. (use-modules (srfi srfi-64))
  3. (test-begin "logic-1")
  4. (test-equal (logic-1 'foo)
  5. 'foo)
  6. (test-equal (logic-1 '(foo bar))
  7. '(foo bar))
  8. (test-equal (logic-1 '(<-> p q))
  9. '(and (or (not p) q) (or (not q) p)))
  10. (test-end "logic-1")