style(parser): range over the include chain depth
Assisted-by: GLM 5.3
This commit is contained in:
1 parent
71cc65ea48
commit
6218023a63
1 file changed
+1
-1
@@ -502,7 +502,7 @@ func TestSelfIncludeIsDetected(t *testing.T) {
|
||||
func TestDeepIncludeChainCompletes(t *testing.T) {
|
||||
const depth = 2000
|
||||
dir := t.TempDir()
|
||||
for i := 0; i < depth; i++ {
|
||||
for i := range depth {
|
||||
var content string
|
||||
if i == depth-1 {
|
||||
content = "#define DEEPEST $7\n"
|
||||
|
||||
Reference in new issue
Block a user