// var assert = require('mini-assert'); // NPM, `npm install mini-assert`
// import assert from "mini-assert"; // JSPM, `jspm install npm:mini-assert`
var bool = Math.random()>0.5;
// use this function to bring to attention
// an unexpected code execution, i.e. a bug
assert(bool, "should not be <=0.5");
// use this function to bring to attention
// a wrong usage of an API
assert.expect(bool, "shou
评论0
最新资源