/extra/method-chains/method-chains-tests.factor

http://github.com/abeaumont/factor · Factor · 13 lines · 10 code · 3 blank · 0 comment · 0 complexity · 2556d8879948b0194d2d7e883d5900cb MD5 · raw file

  1. IN: method-chains.tests
  2. USING: method-chains tools.test arrays strings sequences kernel namespaces ;
  3. GENERIC: testing ( a b -- c )
  4. M: sequence testing nip reverse ;
  5. AFTER: string testing append ;
  6. BEFORE: array testing over prefix "a" set ;
  7. [ V{ 3 2 1 } ] [ 3 V{ 1 2 3 } testing ] unit-test
  8. [ "heyyeh" ] [ 4 "yeh" testing ] unit-test
  9. [ { 4 2 0 } ] [ 5 { 0 2 4 } testing ] unit-test
  10. [ { 5 0 2 4 } ] [ "a" get ] unit-test