remove math.blas.syntax and merge parsing words into math.blas.vectors/matrices
[factor/jcg.git] / extra / multi-methods / tests / definitions.factor
blob64363af428ae724959cc627be064c722bf2c12c0
1 IN: multi-methods.tests
2 USING: multi-methods tools.test math sequences namespaces system
3 kernel strings words compiler.units quotations ;
5 \ GENERIC: must-infer
6 \ create-method-in must-infer
8 DEFER: fake
9 \ fake H{ } clone "multi-methods" set-word-prop
11 [ "fake-{ }" ] [ { } \ fake method-word-name ] unit-test
13 [ H{ { "multi-method-generic" fake } { "multi-method-specializer" { } } } ]
14 [ { } \ fake method-word-props ] unit-test
16 [ t ] [ { } \ fake <method> method-body? ] unit-test
19     [ { } [ ] ] [ \ fake methods prepare-methods [ sort-methods ] dip ] unit-test
21     [ t ] [ { } \ fake multi-dispatch-quot callable? ] unit-test
23     [ t ] [ \ fake make-generic quotation? ] unit-test
25     [ ] [ \ fake update-generic ] unit-test
27     DEFER: testing
29     [ ] [ \ testing define-generic ] unit-test
31     [ t ] [ \ testing generic? ] unit-test
32 ] with-compilation-unit