Assert that a theory is true for a combination of observations.
Assert that addition and multiplication are commutative operations for a combination of 3 whole numbers and 3 fractions like this:
var testTheory = ;var assert = ;var id = 0;;; // = 18
theory: A function that tests a set of observations.
observation: The observation generated from
id: The number identifying
observations: A descriptor whose every property contains either an array, primitive, or object from which a sequence of similar descriptors is generated where each property is replaced with an array element, the primitive, or a property value respectively.
runId: If present, runs only the observation with the given
observation fails then it can be easily debugged by supplying
runId is specified an exception is still thrown after the test pass to ensure that the
runId is removed.
With npm installed, run
$ npm install @kingjs/assert-theory