| 'This tests some sparse array operations.' |
| shouldBe('array[0]', 'undefined'); |
| shouldBe('array[49999]', 'undefined'); |
| shouldBe('array[50000]', '100'); |
| shouldBe('array[50001]', 'undefined'); |
| shouldBe('array[0]', 'NaN'); |
| shouldBe('array[49999]', 'undefined'); |
| shouldBe('array[50000]', '100'); |
| shouldBe('array[50001]', 'undefined'); |
| // This tests oscillation between being sparse and dense. |
| shouldBe('array[0]', 'NaN'); |
| shouldBe('array[49999]', 'undefined'); |
| shouldBe('array[50000]', '100'); |
| shouldBe('array[50001]', 'undefined'); |