1 USING: tools.test kernel ;
2 IN: calendar.format.macros
4 [ 2 ] [ { [ 2 ] } attempt-all-quots ] unit-test
6 [ 2 ] [ { [ 1 throw ] [ 2 ] } attempt-all-quots ] unit-test
8 [ { [ 1 throw ] } attempt-all-quots ] [ 1 = ] must-fail-with
10 : compiled-test-1 ( -- n )
11 { [ 1 throw ] [ 2 ] } attempt-all-quots ;
13 \ compiled-test-1 must-infer
15 [ 2 ] [ compiled-test-1 ] unit-test