Open Nicolab opened 11 years ago
Slim, is impossible in this context because if (float)n.0 (eg: 1.0) this.value = (int)1. :frowning:
Example: this.integer(1.0); // this pass because this.value passed in the asserter is 1 (int)
Therefore is also impossible in this context to create the asserter float(1.0)
It's a subtlety of the javascript ...
A loony idea :
Until something better, this can be is a patch if there is no simple solution
:+1:
please could you add the related unit test ? :pray: :wink: