(t *testing.T)
| 63 | } |
| 64 | |
| 65 | func TestArrayMultipleCircularReferences(t *testing.T) { |
| 66 | const SCRIPT = ` |
| 67 | var T = [1, 2, 3]; |
| 68 | T[42] = T; |
| 69 | T[76] = T; |
| 70 | T[80] = T; |
| 71 | var str = String(T); |
| 72 | // Should handle multiple circular references - all should be empty strings |
| 73 | str.split(',').length === 81; |
| 74 | ` |
| 75 | testScript(SCRIPT, valueTrue, t) |
| 76 | } |
| 77 | |
| 78 | func TestArrayNestedCircularReference(t *testing.T) { |
| 79 | const SCRIPT = ` |
nothing calls this directly
no test coverage detected
searching dependent graphs…