[dylan-lang/testworks] 6ef20a: assert-instance?, assert-not-instance?

GitHub <[email protected]> Wed, 16 Sep 2015 05:49:43 -0700
Newsgroups gmane.comp.lang.dylan.gwydion.cvs
Message-ID <55f96567f13d0_476d3fdbe3ca32b836046@hookshot-fe1-cp1-prd.iad.github.net.mail>
  Branch: refs/heads/assert-instance-or-not
  Home:   https://github.com/dylan-lang/testworks
  Commit: 6ef20a67ae09e48a0879c574dabf4156c22cb02a
      https://github.com/dylan-lang/testworks/commit/6ef20a67ae09e48a0879c574dabf4156c22cb02a
  Author: Bruce Mitchener <[email protected]>
  Date:   2015-09-16 (Wed, 16 Sep 2015)

  Changed paths:
    M assertions.dylan
    M documentation/users-guide/source/reference.rst
    M documentation/users-guide/source/usage.rst
    M library.dylan
    M tests/specification.dylan
    M tests/testworks-test-suite.dylan

  Log Message:
  -----------
  assert-instance?, assert-not-instance?

This brings assert-instance? and assert-not-instance? macros to the newer
assert-based macros. These can be used to get better test failure output
when an assertion fails (rather than assert-true(instance?(...)) or
assert-false(instance?(...))).

* assertions.dylan
  (do-check-instance?): Add negate? flag to handle ~instance? as well.
  (check-instance?): Pass #f for negate? to do-check-instance?.
  (assert-instance?, assert-not-instance?): New macros.

* library.dylan
  (module testworks): Export assert-instance?, assert-not-instance?.

* documentation/users-guide/source/reference.rst
  (assert-instance?, assert-not-instance?): Document.
  (check-instance?): Correct terminology: type, not class.

* documentation/users-guide/source/usage.rst
  (Assertions): Link to new assertions.

* tests/specification.dylan
  (module-spec testworks): Mention new assertions and stub tests.

* tests/testworks-test-suite.dylan
  (testworks-assert-instance?-test,
   testworks-assert-not-instance-test): Test new assertions. We test these
     here to be consistent with the other assertion tests. In the future,
     this could move to the testworks specifications tests.
  (testworks-assertion-macros-suite): Run the new tests.

_______________________________________________
chatter mailing list
[email protected]
https://lists.opendylan.org/mailman/listinfo/chatter