Re: specd - write more expressive unit tests

2013-09-04 Thread linkrope
It would be nice to have something like result.must.not.be!(42); So, have a look at 'assertOp': http://d.puremagic.com/issues/show_bug.cgi?id=4653 How can a user of your code add matchers, for example, to check for elements or attributes in XML? (Without having to change your code.) The

Re: specd - write more expressive unit tests

2013-09-04 Thread jostly
On Tuesday, 3 September 2013 at 06:36:20 UTC, Jacob Carlborg wrote: On 2013-09-02 21:03, jostly wrote: specd is a DSL library allowing you to write more expressive unit tests. It is inspired by projects like specs2 and ScalaTest from the Scala world. Example: unittest {

Re: specd - write more expressive unit tests

2013-09-04 Thread jostly
On Wednesday, 4 September 2013 at 11:06:45 UTC, linkrope wrote: It would be nice to have something like result.must.not.be!(42); So, have a look at 'assertOp': http://d.puremagic.com/issues/show_bug.cgi?id=4653 How can a user of your code add matchers, for example, to check for elements

Re: specd - write more expressive unit tests

2013-09-04 Thread Jacob Carlborg
On 2013-09-04 19:38, jostly wrote: Looks interesting. I hadn't heard of the UDA's before, they seem quite powerful from a brief glance. Very simple but very powerful. It's basically way to tag symbols with values/types. -- /Jacob Carlborg

Re: specd - write more expressive unit tests

2013-09-03 Thread Jacob Carlborg
On 2013-09-02 21:03, jostly wrote: specd is a DSL library allowing you to write more expressive unit tests. It is inspired by projects like specs2 and ScalaTest from the Scala world. Example: unittest { describe(a string) .should(have a length property,