Skip to content

Commit

Permalink
add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
hpinkos committed Jun 15, 2020
1 parent 30b0fc9 commit 65aa312
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Specs/Core/PolylinePipelineSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,13 @@ describe("Core/PolylinePipeline", function () {
expect(newPositions.length).toEqual(3);
expect(newPositions).toEqual([0, 0, 1]);
});

it("generateRhumbArc return values for each position", function () {
var newPositions = PolylinePipeline.generateRhumbArc({
positions: Cartesian3.fromDegreesArray([0, 0, 10, 0, 10, 5]),
});
for (let i = 0; i < newPositions.length; i++) {
expect(newPositions[i]).toBeDefined();
}
});
});

0 comments on commit 65aa312

Please sign in to comment.