/extra/multi-methods/tests/legacy.factor
http://github.com/abeaumont/factor · Factor · 10 lines · 7 code · 3 blank · 0 comment · 0 complexity · a4255b435ec1fb64650a984141e2b959 MD5 · raw file
- USING: math strings sequences tools.test ;
- IN: multi-methods.tests
- GENERIC: legacy-test ( a -- b )
- M: integer legacy-test sq ;
- M: string legacy-test " hey" append ;
- [ 25 ] [ 5 legacy-test ] unit-test
- [ "hello hey" ] [ "hello" legacy-test ] unit-test