]> gitweb.factorcode.org Git - factor.git/blob - core/math/math-tests.factor
New convention for unit tests
[factor.git] / core / math / math-tests.factor
1 USING: kernel math namespaces tools.test ;
2 IN: math.tests
3
4 [ ] [ 5 [ ] times ] unit-test
5 [ ] [ 0 [ ] times ] unit-test
6 [ ] [ -1 [ ] times ] unit-test
7
8 [ ] [ 5 [ drop ] each-integer ] unit-test
9 [ [ 0 1 2 3 4 ] ] [ [ 5 [ , ] each-integer ] [ ] make ] unit-test
10 [ [ ] ] [ [ -1 [ , ] each-integer ] [ ] make ] unit-test
11