(u: Json)
| 245 | expect(cond(['HalfIntegerQ', ['Rational', 3, 2]])).toBe(true); |
| 246 | expect(cond(['HalfIntegerQ', ['Rational', -1, 2]])).toBe(true); |
| 247 | expect(cond(['HalfIntegerQ', ['Rational', -5, 2]])).toBe(true); |
| 248 | // integers, other denominators, and non-rationals are NOT half-integers |
| 249 | expect(cond(['HalfIntegerQ', 2])).toBe(false); |
| 250 | expect(cond(['HalfIntegerQ', ['Rational', 1, 3]])).toBe(false); |
| 251 | expect(cond(['HalfIntegerQ', ['Rational', 1, 4]])).toBe(false); |
no test coverage detected