f4dd23fc31
Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
13 lines
351 B
TypeScript
13 lines
351 B
TypeScript
import { isVector } from ".";
|
|
|
|
describe("Vector", () => {
|
|
test("isVector", () => {
|
|
expect(isVector([5, 5])).toBe(true);
|
|
expect(isVector([-5, -5])).toBe(true);
|
|
expect(isVector([5, 0.5])).toBe(true);
|
|
expect(isVector(null)).toBe(false);
|
|
expect(isVector(undefined)).toBe(false);
|
|
expect(isVector([5, NaN])).toBe(false);
|
|
});
|
|
});
|