tape-approximately

1.0.0 • Public • Published

tape-approximately

Adds t.approximately() to tape

Install

$ npm install --save-dev tape-approximately

Usage

const test = require('tape');
require('tape-approximately')(test);
 
test('floating point math', function(t) {
 
  t.approximately(actual, expected, delta);
 
  // or
 
  t.approximately(actual, expected, delta, message);
 
});

License

MIT

/tape-approximately/

    Package Sidebar

    Install

    npm i tape-approximately

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • psalaets