github Parquery/icontract v2.0.5
icontract 2.0.5

latest releases: v2.7.1, v2.7.0, v2.6.6...
5 years ago
  • Improved error message on unexpected arguments in a call
  • Distinguished between optional and mandatory arguments in conditions.
    Default argument values in conditions are accepted instead of raising a misleading "missing argument" exception.
  • Added a boolyness check to detect if the condition evaluation can be negated.
    If the condition evaluation lacks boolyness, a more informative exception is now raised.
    For example, this is important for all the code operating with numpy arrays where boolyness is not given.
  • Added contract location to require, ensure and snapshot.
    This feature had been erroneously omitted in 2.0.4.

Don't miss a new icontract release

NewReleases is sending notifications on new releases.