Math.min.js 345 B

1234567891011
  1. test("basic functionality", () => {
  2. expect(Math.min).toHaveLength(2);
  3. expect(Math.min(1)).toBe(1);
  4. expect(Math.min(2, 1)).toBe(1);
  5. expect(Math.min(1, 2, 3)).toBe(1);
  6. expect(Math.min(-0, 0)).toBe(-0);
  7. expect(Math.min(0, -0)).toBe(-0);
  8. expect(Math.min(NaN)).toBeNaN();
  9. expect(Math.min("String", 1)).toBeNaN();
  10. });