rangeset_test.js
No description.

File Location

/goog/math/rangeset_test.js


Public Protected Private

Global Functions

assertRangeListsEqual(abopt_c)
Produce legible assertion results for comparing two lists of ranges. Expected lists may be specified as a list of goog.math.Ranges, or as a list of two-element arrays of numbers.
Arguments:
a : Array.<goog.math.Range | Array.<number>> | string
A help string or the list of expected ranges.
b : Array.<goog.math.Range | Array.<number>>
The list of expected ranges when a descriptive string is present, or the list of ranges to compare.
opt_c : Array.<goog.math.Range>>
The list of ranges to compare when a descriptive string is present.
code »
assertRangesEqual(abopt_c)
Produce legible assertion results for comparing ranges. The expected range may be defined as a goog.math.Range or as a two-element array of numbers. If two ranges are not equal, the error message will be in the format: "Expected <[1, 2]> (Object) but was <[3, 4]> (Object)"
Arguments:
a : !goog.math.Range | !Array.<number> | string
A descriptive string or the expected range.
b : !goog.math.Range | !Array.<number>
The expected range when a descriptive string is present, or the range to compare.
opt_c : goog.math.Range=
The range to compare when a descriptive string is present.
code »
testAdd()
No description.
code »
testAddNoCorruption()
No description.
code »
testAddWithAdjacentSpans()
No description.
code »
testAddWithOverlaps()
No description.
code »
testAddWithSubsets()
No description.
code »
testClear()
No description.
code »
testClone()
No description.
code »
testContains()
No description.
code »
testContainsValue()
No description.
code »
testCoveredLength()
No description.
code »
testDifference()
No description.
code »
testEquals()
No description.
code »
testGetBounds()
No description.
code »
testIntersection()
No description.
code »
testInverse()
No description.
code »
testIsEmpty()
No description.
code »
testIter()
No description.
code »
testRemove()
No description.
code »
testRemoveMultiple()
No description.
code »
testRemoveWithIdenticalRanges()
No description.
code »
testRemoveWithNonOverlappingRanges()
No description.
code »
testRemoveWithOverlappingSubsets()
No description.
code »
testRemoveWithRealNumbers()
No description.
code »
testSlice()
No description.
code »
testUnion()
No description.
code »

Directory math

File Reference