[dylan-lang/testworks] 2103e4: assert-instance?, assert-not-instance?
GitHub <[email protected]> Thu, 17 Sep 2015 08:20:47 -0700
| Newsgroups | gmane.comp.lang.dylan.gwydion.cvs |
|---|---|
| Message-ID | <55fada4f44433_56a03fdf430a32c012520@hookshot-fe5-cp1-prd.iad.github.net.mail> |
Branch: refs/heads/master
Home: https://github.com/dylan-lang/testworks
Commit: 2103e49646d7a9287549169347a01e08f2c95687
https://github.com/dylan-lang/testworks/commit/2103e49646d7a9287549169347a01e08f2c95687
Author: Bruce Mitchener <[email protected]>
Date: 2015-09-17 (Thu, 17 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.
Commit: e3881ca7665e66aa0517a224b8cad838fbf00c4b
https://github.com/dylan-lang/testworks/commit/e3881ca7665e66aa0517a224b8cad838fbf00c4b
Author: Carl Gay <[email protected]>
Date: 2015-09-17 (Thu, 17 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:
-----------
Merge pull request #74 from dylan-lang/assert-instance-or-not
assert-instance?, assert-not-instance?
Compare: https://github.com/dylan-lang/testworks/compare/eb5dbc430b59...e3881ca7665e
_______________________________________________
chatter mailing list
[email protected]
https://lists.opendylan.org/mailman/listinfo/chatter