remove math.blas.syntax and merge parsing words into math.blas.vectors/matrices
[factor/jcg.git] / extra / literals / literals-tests.factor
blob34ea4d6415f730d5d11d15501d6c2534e96d5a4b
1 USING: kernel literals math tools.test ;
2 IN: literals.tests
4 <<
5 : five 5 ;
6 : seven-eleven 7 11 ;
7 : six-six-six 6 6 6 ;
8 >>
10 [ { 5 } ] [ { $ five } ] unit-test
11 [ { 7 11 } ] [ { $ seven-eleven } ] unit-test
12 [ { 6 6 6 } ] [ { $ six-six-six } ] unit-test
14 [ { 6 6 6 7 } ] [ { $ six-six-six 7 } ] unit-test
16 [ { 8 8 8 } ] [ { $[ six-six-six [ 2 + ] tri@ ] } ] unit-test
18 [ { 0.5 2.0 } ] [ { $[ 1.0 2.0 / ] 2.0 } ] unit-test
20 [ { 1.0 { 0.5 1.5 } 4.0 } ] [ { 1.0 { $[ 1.0 2.0 / ] 1.5 } $[ 2.0 2.0 * ] } ] unit-test