You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
WebCAD/__test__/ALG/array.test.ts

13 lines
327 B

import { ArrayRemoveDupSavePre } from "../../src/Common/ArrayExt";
test('删除多段线重复的点', () =>
{
let pts = [0, 1, 1, 1, 1, 4, 5, 5, 5];
let buls = [[-0.1, 0.1, 0.5, 1, 2, 3, 4, 0.1, 0.2]];
ArrayRemoveDupSavePre(pts, buls);
expect(pts).toMatchSnapshot();
expect(buls).toMatchSnapshot();
});