Rudy’s OBTF Rudolf Adamkovič

Home / Logic / Truth table / Implementation / Function scheme/boolean-product


Test

<<scheme/boolean-product>>
(unless (equal? (boolean-product 1)
                '((#f)
                  (#t)))
  (raise #f))
(unless (equal? (boolean-product 2)
                '((#f #f)
                  (#f #t)
                  (#t #f)
                  (#t #t)))
  (raise #f))
(unless (equal? (boolean-product 3)
                '((#f #f #f)
                  (#f #f #t)
                  (#f #t #f)
                  (#f #t #t)
                  (#t #f #f)
                  (#t #f #t)
                  (#t #t #f)
                  (#t #t #t)))
  (raise #f))
"tests passed"
tests passed

© 2025 Rudolf Adamkovič under GNU General Public License (GPL) version 3 or later.
Made with Emacs and secret alien technologies of yesteryear.