www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - fluent-asserts 0.8.0 released

reply Szabo Bogdan <szabobogdan3 gmail.com> writes:
Hi,

I just made some updates to fluent-asserts library. Since the 
last release I did:

* use lazy parameters to test exceptions
```
/// instead of:
({ foo() }).should.throwAnyException;

/// you can now use rewrite it like this:
foo().should.throwAnyException;
```
the known issue is that you can not use this syntax for functions 
that return arrays or ranges... I'll try to fix this issue in a 
future release

* .beNull for delegates
* spaces between words are not replaced with special chars (for 
those who use trial)
* compare immutable and const values with mutable values
* .equal for objects
* improved code results

The library is starting to be more complex that I was expecting 
when I started the project, so any feedbak is appreciated.

Also I want to thank to linkrope, ohdatboi and DiddiZ for the 
submitted issues.
Dec 01
parent Szabo Bogdan <szabobogdan3 gmail.com> writes:
I forgot to add a link to the library... so if you are intrested 
about this you can find it here: 
https://code.dlang.org/packages/fluent-asserts
Dec 01