|
|
|
@ -29,9 +29,8 @@ test('旋转量', () =>
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
test('排序点', () =>
|
|
|
|
|
describe('排序测试', () =>
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
let pts = [
|
|
|
|
|
new Vector3(6, 2, 4),
|
|
|
|
|
new Vector3(1, 4, 3),
|
|
|
|
@ -40,12 +39,21 @@ test('排序点', () =>
|
|
|
|
|
new Vector3(1, 3, 1),
|
|
|
|
|
new Vector3(1, 2, 1),
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
pts.sort(comparePoint("xyz"));
|
|
|
|
|
expect(pts).toMatchSnapshot();
|
|
|
|
|
|
|
|
|
|
pts.sort(comparePoint("Xyz"));
|
|
|
|
|
expect(pts).toMatchSnapshot();
|
|
|
|
|
pts.sort(comparePoint("Zx"));
|
|
|
|
|
expect(pts).toMatchSnapshot();
|
|
|
|
|
test('排序点xyz', () =>
|
|
|
|
|
{
|
|
|
|
|
pts.sort(comparePoint("xyz"));
|
|
|
|
|
expect(pts).toMatchSnapshot();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
test('排序点Xyz', () =>
|
|
|
|
|
{
|
|
|
|
|
pts.sort(comparePoint("Xyz"));
|
|
|
|
|
expect(pts).toMatchSnapshot();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
test('排序点Zx', () =>
|
|
|
|
|
{
|
|
|
|
|
pts.sort(comparePoint("Zx"));
|
|
|
|
|
expect(pts).toMatchSnapshot();
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|