tests/indent: test formatting of long single-line code comments

This commit is contained in:
rillig 2021-10-12 19:05:22 +00:00
parent 9d99f123da
commit 1122358953
2 changed files with 17 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: token-comment.0,v 1.8 2021/10/12 18:54:56 rillig Exp $ */
/* $NetBSD: token-comment.0,v 1.9 2021/10/12 19:05:22 rillig Exp $ */
/* $FreeBSD$ */
/*
@ -97,6 +97,13 @@ function(void)
code(); /* code comment ____________ to line length 81 */
code(); /* code comment _____________ to line length 82 */
/* $ In the following comments, the line length is measured after formatting. */
code(); /* code comment _________ to line length 78*/
code(); /* code comment __________ to line length 79*/
code(); /* code comment ___________ to line length 80*/
code(); /* code comment ____________ to line length 81*/
code(); /* code comment _____________ to line length 82*/
code(); /* short
* multi-line
* code

View File

@ -1,4 +1,4 @@
/* $NetBSD: token-comment.0.stdout,v 1.10 2021/10/12 18:54:56 rillig Exp $ */
/* $NetBSD: token-comment.0.stdout,v 1.11 2021/10/12 19:05:22 rillig Exp $ */
/* $FreeBSD$ */
/*
@ -102,6 +102,14 @@ function(void)
code(); /* code comment _____________ to line length
* 82 */
/* $ In the following comments, the line length is measured after formatting. */
code(); /* code comment _________ to line length 78 */
code(); /* code comment __________ to line length 79 */
code(); /* code comment ___________ to line length 80 */
code(); /* code comment ____________ to line length 81 */
code(); /* code comment _____________ to line length
* 82 */
code(); /* short multi-line code comment */
code(); /* long single-line code comment that is