remove math.blas.syntax and merge parsing words into math.blas.vectors/matrices
[factor/jcg.git] / basis / random / random-tests.factor
blobe686dd73010a0f1f62dc0932321a1e4f51e03c75
1 USING: random sequences tools.test kernel math math.functions
2 sets ;
3 IN: random.tests
5 [ 4 ] [ 4 random-bytes length ] unit-test
6 [ 7 ] [ 7 random-bytes length ] unit-test
8 [ 4 ] [ [ 4 random-bytes length ] with-secure-random ] unit-test
9 [ 7 ] [ [ 7 random-bytes length ] with-secure-random ] unit-test
11 [ 2 ] [ V{ 10 20 30 } [ delete-random drop ] keep length ] unit-test
12 [ V{ } [ delete-random drop ] keep length ] must-fail
14 [ t ] [ 10000 [ 0 [ drop 187 random + ] reduce ] keep / 2 * 187 10 ~ ] unit-test
15 [ t ] [ 10000 [ 0 [ drop 400 random + ] reduce ] keep / 2 * 400 10 ~ ] unit-test
17 [ t ] [ 1000 [ 400 random ] replicate prune length 256 > ] unit-test
19 [ f ] [ 0 random ] unit-test