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(); });