Commit 0656fc2
test: update comment test expectations for block comment fix
The ParseComment() function was updated to keep multi-line block comments
as a single ast.Comment node (per Go's AST spec) instead of splitting them
by newlines. This commit updates the test expectations to match the new
correct behavior.
Changes:
- Multi-line block comments (/* ... */) now appear as one Comment node
- Line comments (//) continue to be separate nodes per line
Generated with [codeagent](https://github.com/qbox/codeagent)
Co-authored-by: luoliwoshang <51194195+luoliwoshang@users.noreply.github.com>1 parent f26d750 commit 0656fc2
1 file changed
+4
-40
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
| 356 | + | |
369 | 357 | | |
370 | 358 | | |
371 | 359 | | |
| |||
524 | 512 | | |
525 | 513 | | |
526 | 514 | | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
| 515 | + | |
536 | 516 | | |
537 | 517 | | |
538 | 518 | | |
| |||
584 | 564 | | |
585 | 565 | | |
586 | 566 | | |
587 | | - | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
| 567 | + | |
596 | 568 | | |
597 | 569 | | |
598 | 570 | | |
| |||
672 | 644 | | |
673 | 645 | | |
674 | 646 | | |
675 | | - | |
676 | | - | |
677 | | - | |
678 | | - | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
683 | | - | |
| 647 | + | |
684 | 648 | | |
685 | 649 | | |
686 | 650 | | |
| |||
0 commit comments