chore: 添加第三方依赖库
This commit is contained in:
17
thirdparty/rapier.js/rapier-compat/tests/math3d.test.ts
vendored
Normal file
17
thirdparty/rapier.js/rapier-compat/tests/math3d.test.ts
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
import {Vector3, VectorOps} from "../builds/3d-deterministic/pkg";
|
||||
|
||||
describe("3d/math", () => {
|
||||
test("Vector3", () => {
|
||||
const v = new Vector3(0, 1, 2);
|
||||
expect(v.x).toBe(0);
|
||||
expect(v.y).toBe(1);
|
||||
expect(v.z).toBe(2);
|
||||
});
|
||||
|
||||
test("VectorOps", () => {
|
||||
const v = VectorOps.new(0, 1, 2);
|
||||
expect(v.x).toBe(0);
|
||||
expect(v.y).toBe(1);
|
||||
expect(v.z).toBe(2);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user