Accessor: test/TestRequire

test/TestRequire

Test accessor that is similar to its base class, except that it requires the 'util' module. This tests both require() and this.extend().

Version:
  • $$Id$$
Author:
  • Edward A. Lee
Source:
Inputs:
Name Type Description
untyped An untyped input that will accept any JavaScript object.
numeric A numeric input.
boolean A boolean input.
Outputs:
Name Type Description
typeOfUntyped Produces the type (a string) of the input named 'untyped'.
jsonOfUntyped Produces a JSON representation of the input named 'untyped', created using the util module.
numericPlusP Produces the value of the 'numeric' input plus 'p'.
negation Produces the negation of the 'boolean' input.
Parameters:
Name Type Description
p A parameter with default value 42.

Methods

(static) formatOutput()

Override the base class to use util.

Source: