Module: rational-test

A module for testing the C++ addon-generated Rational class against the emulating JavaScript Rational class.
Version:
  • 1.0.0
Author:
  • Essam A. El-Sherif
Source:

Members

(inner, constant) cmdOptions :object

Testing options.
Type:
  • object
Source:

(inner, constant) rational_addon :object

The C++ addon exported object.
Type:
  • object
Source:

(inner, constant) rational_module :object

The JavaScript module exported object.
Type:
  • object
Source:
See:

Methods

(inner) Main()

The application entry point function.
Source:

(inner) defRunner()

Carry out the loaded tests using this developed test runner.
Source:

(inner) loadTestData()

Load test data.
Source:

(inner) makeTest async(obj)

Carry out a single test.
Parameters:
Name Type Description
obj object The test data object.
Source:

(inner) nodeRunner(runner)

Carry out the loaded tests using node test runner.
Parameters:
Name Type Description
runner object The node core module 'node:test' object.
Source: