Lines Matching full:zero
43 // Prepare a non-Smi zero value.
45 var ZERO = (function() {
55 assertEquals(0, ZERO);
56 assertEquals(Infinity, 1/ZERO);
57 assertEquals(-Infinity, 1/-ZERO);
58 // Here we would like to have assertFalse(%_IsSmi(ZERO)); This is, however,
60 // us into the runtime system, which would quite legitimately put a Smi zero
62 assertFalse(%_IsSmi(-ZERO));
72 assertEquals(-Infinity, Infinity / Math.min(-0, ZERO));
73 assertEquals(-Infinity, Infinity / Math.min(ZERO, -0));
74 assertEquals(-Infinity, Infinity / Math.min(ZERO, -0, 1));
105 assertEquals(Infinity, Infinity / Math.max(-0, ZERO));
106 assertEquals(Infinity, Infinity / Math.max(ZERO, -0));
107 assertEquals(Infinity, Infinity / Math.max(ZERO, -0, -1));
116 assertEquals(Infinity, 1/Math.max(ZERO, -0));
117 assertEquals(Infinity, 1/Math.max(-0, ZERO));