1234567891011121314 |
- /**
- * Created by Tony on 2017/3/16.
- */
- var test = require('tape');
- test('basic arithmetic', function (t) {
- t.equal(2 + 3, 5);
- t.equal(7 * 8 + 9, 65);
- t.equal(/^-?\d+$/.test("10"), true);
- //t.equal(isNaN(10.1), true);
- t.equal(Math.round(10.4999), 10);
- t.end();
- });
|