functions: Wrap the test for apply-tbf/boolean in test-case.

This commit is contained in:
Sergiu Ivanov 2020-07-07 23:24:34 +02:00
parent 194bb1bb10
commit dfe8766424

View file

@ -275,6 +275,7 @@
(01->boolean (apply-tbf tbf (vector-map any->01 inputs))))
(module+ test
(test-case "apply-tbf/boolean"
(define f1 (tbf #(2 -2) 1))
(check-equal? (tabulate/boolean (λ (x y) (apply-tbf/boolean f1 (vector x y))))
'((#f #f #f) (#f #t #f) (#t #f #t) (#t #t #f))))
'((#f #f #f) (#f #t #f) (#t #f #t) (#t #t #f)))))