wtest 0.1.2

Tools for writing and running tests.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

let _ = require( 'wTools' );

function div( a, b )
{
  _.assert( b !== 0 );
  return a / b;
}

div( 5, 0 );

/*
Somewhat over trivial example of using asserts.
Asserts is test check built-in source code of the unit of testing.
*/