(m: Expression)
| 1848 | it('is lazy for a large extent before an empty axis', () => { |
| 1849 | // 10^9 empty rows: an eager list would allocate them all. |
| 1850 | const rows = ce.expr(['Zeros', 1000000000, 0]).evaluate(); |
| 1851 | expect(rows.operator).toBe('Repeat'); |
| 1852 | expect(ce.box(['Length', rows]).evaluate().re).toBe(1000000000); |
| 1853 | expect(ce.box(['At', rows, 5]).evaluate().toString()).toBe('[]'); |
| 1854 | // An extent above 2^53 is not read as 0. |
| 1855 | const huge = ce |
| 1856 | .expr(['Fill', 7, { num: '100000000000000000000' }, 0]) |
no test coverage detected