MCPcopy
hub / github.com/palantir/plottable / assertPointsClose

Function assertPointsClose

test/testMethods.ts:95–98  ·  view source on GitHub ↗
(actual: Plottable.Point, expected: Plottable.Point, epsilon: number, message: String)

Source from the content-addressed store, hash-verified

93}
94
95export function assertPointsClose(actual: Plottable.Point, expected: Plottable.Point, epsilon: number, message: String) {
96 assert.closeTo(actual.x, expected.x, epsilon, message + " (x)");
97 assert.closeTo(actual.y, expected.y, epsilon, message + " (y)");
98}
99
100export function assertWidthHeight(el: SimpleSelection<void>, widthExpected: number, heightExpected: number, message: string) {
101 const width = el.attr("width");

Callers 2

assertEntitiesEqualFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected