1 IN: multi-methods.tests
2 USING: multi-methods tools.test math sequences namespaces system
3 kernel strings words compiler.units quotations ;
6 \ create-method-in must-infer
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
29 [ ] [ \ testing define-generic ] unit-test
31 [ t ] [ \ testing generic? ] unit-test
32 ] with-compilation-unit