self-explained
self explained tools - starting with "assert"
Install
$ npm install self-explained
Use
var assert = assert; var alpha = 10;var betha = 7; ;
It controls the expression like assert
does.
If the expression evaluates to false
it will show the expression and the value.
(also throws the Exception)
ASSERT FAILEDalpha / 2 > betha -1 ==== false
Much more info
var assert = assert; var alpha = 10;var betha = 7; ;
Adding eval
to the assert It will shows the evaluation of all subexpressions
ASSERT FAILEDalpha / 2 > betha -1 ==== falsealpha / 2 ==== 5betha -1 ==== 6alpha ==== 10betha ==== 7
Exceptions
Function assertCatch
controls that an Error been throwed.
;
Tests with real devices
NPM version | Device | OS | nav |
---|---|---|---|
0.10.0 | HTC Desire | Android 2.2.2 | Android 2.2.2 |
0.10.0 | Samgsung Galaxy Note 4 | Android 5.1.1 | Samsung Internet 4.0.0 |
0.10.2 | Samgsung Galaxy Note 4 | Android 6.0.1 | Chrome Mobile 50.0.2661 |
0.10.0 | Blue Vivo Air LTE | Android 5.0.2 | Chrome Mobile 50.0.2661 |
0.10.0 | iPad mini Retina | iOS 8.4.0 | Mobile Safari 8.0.0 |
0.10.0 | VMWare | WinXP | IE 8.0.0 |