2 USING: tools.test logging math ;
4 : input-logging-test ( a b -- c ) + ;
6 \ input-logging-test NOTICE add-input-logging
8 : output-logging-test ( a b -- c ) + ;
10 \ output-logging-test DEBUG add-output-logging
12 : error-logging-test ( a b -- c ) / ;
14 \ error-logging-test ERROR add-error-logging
17 [ 4 ] [ 1 3 input-logging-test ] unit-test
19 [ 4 ] [ 1 3 output-logging-test ] unit-test
21 [ 4/3 ] [ 4 3 error-logging-test ] unit-test
23 [ f ] [ 1 0 error-logging-test ] unit-test