/core/definitions/definitions-tests.factor

http://github.com/abeaumont/factor · Factor · 30 lines · 20 code · 10 blank · 0 comment · 0 complexity · 53f558028f6ab0f775c94ed67ca4d522 MD5 · raw file

  1. USING: tools.test generic kernel definitions sequences
  2. compiler.units words ;
  3. IN: definitions.tests
  4. GENERIC: some-generic ( a -- b )
  5. USE: arrays
  6. M: array some-generic ;
  7. USE: bit-arrays
  8. M: bit-array some-generic ;
  9. USE: byte-arrays
  10. M: byte-array some-generic ;
  11. TUPLE: some-class ;
  12. M: some-class some-generic ;
  13. [ ] [
  14. [
  15. \ some-generic
  16. \ some-class
  17. 2array
  18. forget-all
  19. ] with-compilation-unit
  20. ] unit-test