Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src
Module Name: src
Committed By: rillig
Date: Fri Mar 12 00:13:06 UTC 2021
Modified Files:
src/distrib/sets/lists/tests: mi
src/tests/usr.bin/indent: Makefile
Added Files:
src/tests/usr.bin/indent: token-binary_op.0 token-binary_op.0.pro
token-binary_op.0.stdout token-case_label.0 token-case_label.0.pro
token-case_label.0.stdout token-colon.0 token-colon.0.pro
token-colon.0.stdout token-comma.0 token-comma.0.pro
token-comma.0.stdout token-comment.0 token-comment.0.pro
token-comment.0.stdout token-decl.0 token-decl.0.pro
token-decl.0.stdout token-do_stmt.0 token-do_stmt.0.pro
token-do_stmt.0.stdout token-end_of_file.0 token-end_of_file.0.pro
token-end_of_file.0.stdout token-for_exprs.0 token-for_exprs.0.pro
token-for_exprs.0.stdout token-form_feed.0 token-form_feed.0.pro
token-form_feed.0.stdout token-funcname.0 token-funcname.0.pro
token-funcname.0.stdout token-ident.0 token-ident.0.pro
token-ident.0.stdout token-if_expr.0 token-if_expr.0.pro
token-if_expr.0.stdout token-if_expr_stmt.0
token-if_expr_stmt.0.pro token-if_expr_stmt.0.stdout
token-if_expr_stmt_else.0 token-if_expr_stmt_else.0.pro
token-if_expr_stmt_else.0.stdout token-keyword_do.0
token-keyword_do.0.pro token-keyword_do.0.stdout
token-keyword_do_else.0 token-keyword_do_else.0.pro
token-keyword_do_else.0.stdout token-keyword_else.0
token-keyword_else.0.pro token-keyword_else.0.stdout
token-keyword_for_if_while.0 token-keyword_for_if_while.0.pro
token-keyword_for_if_while.0.stdout
token-keyword_struct_union_enum.0
token-keyword_struct_union_enum.0.pro
token-keyword_struct_union_enum.0.stdout token-lbrace.0
token-lbrace.0.pro token-lbrace.0.stdout token-lparen.0
token-lparen.0.pro token-lparen.0.stdout token-newline.0
token-newline.0.pro token-newline.0.stdout token-period.0
token-period.0.pro token-period.0.stdout token-postfix_op.0
token-postfix_op.0.pro token-postfix_op.0.stdout
token-preprocessing.0 token-preprocessing.0.pro
token-preprocessing.0.stdout token-question.0 token-question.0.pro
token-question.0.stdout token-rbrace.0 token-rbrace.0.pro
token-rbrace.0.stdout token-rparen.0 token-rparen.0.pro
token-rparen.0.stdout token-semicolon.0 token-semicolon.0.pro
token-semicolon.0.stdout token-stmt.0 token-stmt.0.pro
token-stmt.0.stdout token-stmt_list.0 token-stmt_list.0.pro
token-stmt_list.0.stdout token-storage_class.0
token-storage_class.0.pro token-storage_class.0.stdout
token-string_prefix.0 token-string_prefix.0.pro
token-string_prefix.0.stdout token-switch_expr.0
token-switch_expr.0.pro token-switch_expr.0.stdout token-type_def.0
token-type_def.0.pro token-type_def.0.stdout token-unary_op.0
token-unary_op.0.pro token-unary_op.0.stdout token-while_expr.0
token-while_expr.0.pro token-while_expr.0.stdout
Log Message:
tests/indent: add test templates for testing specific parser symbols
The basic idea of indent is to split the input into tokens and then
reassemble them, reformatting them on the way. These tokens determine
how the output is formatted, therefore add tests for each of the
terminal tokens and nonterminal parser symbols, to cover more common
cases, and edge cases as well.
To generate a diff of this commit:
cvs rdiff -u -r1.1030 -r1.1031 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.7 -r1.8 src/tests/usr.bin/indent/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/usr.bin/indent/token-binary_op.0 \
src/tests/usr.bin/indent/token-binary_op.0.pro \
src/tests/usr.bin/indent/token-binary_op.0.stdout \
src/tests/usr.bin/indent/token-case_label.0 \
src/tests/usr.bin/indent/token-case_label.0.pro \
src/tests/usr.bin/indent/token-case_label.0.stdout \
src/tests/usr.bin/indent/token-colon.0 \
src/tests/usr.bin/indent/token-colon.0.pro \
src/tests/usr.bin/indent/token-colon.0.stdout \
src/tests/usr.bin/indent/token-comma.0 \
src/tests/usr.bin/indent/token-comma.0.pro \
src/tests/usr.bin/indent/token-comma.0.stdout \
src/tests/usr.bin/indent/token-comment.0 \
src/tests/usr.bin/indent/token-comment.0.pro \
src/tests/usr.bin/indent/token-comment.0.stdout \
src/tests/usr.bin/indent/token-decl.0 \
src/tests/usr.bin/indent/token-decl.0.pro \
src/tests/usr.bin/indent/token-decl.0.stdout \
src/tests/usr.bin/indent/token-do_stmt.0 \
src/tests/usr.bin/indent/token-do_stmt.0.pro \
src/tests/usr.bin/indent/token-do_stmt.0.stdout \
src/tests/usr.bin/indent/token-end_of_file.0 \
src/tests/usr.bin/indent/token-end_of_file.0.pro \
src/tests/usr.bin/indent/token-end_of_file.0.stdout \
src/tests/usr.bin/indent/token-for_exprs.0 \
src/tests/usr.bin/indent/token-for_exprs.0.pro \
src/tests/usr.bin/indent/token-for_exprs.0.stdout \
src/tests/usr.bin/indent/token-form_feed.0 \
src/tests/usr.bin/indent/token-form_feed.0.pro \
src/tests/usr.bin/indent/token-form_feed.0.stdout \
src/tests/usr.bin/indent/token-funcname.0 \
src/tests/usr.bin/indent/token-funcname.0.pro \
src/tests/usr.bin/indent/token-funcname.0.stdout \
src/tests/usr.bin/indent/token-ident.0 \
src/tests/usr.bin/indent/token-ident.0.pro \
src/tests/usr.bin/indent/token-ident.0.stdout \
src/tests/usr.bin/indent/token-if_expr.0 \
src/tests/usr.bin/indent/token-if_expr.0.pro \
src/tests/usr.bin/indent/token-if_expr.0.stdout \
src/tests/usr.bin/indent/token-if_expr_stmt.0 \
src/tests/usr.bin/indent/token-if_expr_stmt.0.pro \
src/tests/usr.bin/indent/token-if_expr_stmt.0.stdout \
src/tests/usr.bin/indent/token-if_expr_stmt_else.0 \
src/tests/usr.bin/indent/token-if_expr_stmt_else.0.pro \
src/tests/usr.bin/indent/token-if_expr_stmt_else.0.stdout \
src/tests/usr.bin/indent/token-keyword_do.0 \
src/tests/usr.bin/indent/token-keyword_do.0.pro \
src/tests/usr.bin/indent/token-keyword_do.0.stdout \
src/tests/usr.bin/indent/token-keyword_do_else.0 \
src/tests/usr.bin/indent/token-keyword_do_else.0.pro \
src/tests/usr.bin/indent/token-keyword_do_else.0.stdout \
src/tests/usr.bin/indent/token-keyword_else.0 \
src/tests/usr.bin/indent/token-keyword_else.0.pro \
src/tests/usr.bin/indent/token-keyword_else.0.stdout \
src/tests/usr.bin/indent/token-keyword_for_if_while.0 \
src/tests/usr.bin/indent/token-keyword_for_if_while.0.pro \
src/tests/usr.bin/indent/token-keyword_for_if_while.0.stdout \
src/tests/usr.bin/indent/token-keyword_struct_union_enum.0 \
src/tests/usr.bin/indent/token-keyword_struct_union_enum.0.pro \
src/tests/usr.bin/indent/token-keyword_struct_union_enum.0.stdout \
src/tests/usr.bin/indent/token-lbrace.0 \
src/tests/usr.bin/indent/token-lbrace.0.pro \
src/tests/usr.bin/indent/token-lbrace.0.stdout \
src/tests/usr.bin/indent/token-lparen.0 \
src/tests/usr.bin/indent/token-lparen.0.pro \
src/tests/usr.bin/indent/token-lparen.0.stdout \
src/tests/usr.bin/indent/token-newline.0 \
src/tests/usr.bin/indent/token-newline.0.pro \
src/tests/usr.bin/indent/token-newline.0.stdout \
src/tests/usr.bin/indent/token-period.0 \
src/tests/usr.bin/indent/token-period.0.pro \
src/tests/usr.bin/indent/token-period.0.stdout \
src/tests/usr.bin/indent/token-postfix_op.0 \
src/tests/usr.bin/indent/token-postfix_op.0.pro \
src/tests/usr.bin/indent/token-postfix_op.0.stdout \
src/tests/usr.bin/indent/token-preprocessing.0 \
src/tests/usr.bin/indent/token-preprocessing.0.pro \
src/tests/usr.bin/indent/token-preprocessing.0.stdout \
src/tests/usr.bin/indent/token-question.0 \
src/tests/usr.bin/indent/token-question.0.pro \
src/tests/usr.bin/indent/token-question.0.stdout \
src/tests/usr.bin/indent/token-rbrace.0 \
src/tests/usr.bin/indent/token-rbrace.0.pro \
src/tests/usr.bin/indent/token-rbrace.0.stdout \
src/tests/usr.bin/indent/token-rparen.0 \
src/tests/usr.bin/indent/token-rparen.0.pro \
src/tests/usr.bin/indent/token-rparen.0.stdout \
src/tests/usr.bin/indent/token-semicolon.0 \
src/tests/usr.bin/indent/token-semicolon.0.pro \
src/tests/usr.bin/indent/token-semicolon.0.stdout \
src/tests/usr.bin/indent/token-stmt.0 \
src/tests/usr.bin/indent/token-stmt.0.pro \
src/tests/usr.bin/indent/token-stmt.0.stdout \
src/tests/usr.bin/indent/token-stmt_list.0 \
src/tests/usr.bin/indent/token-stmt_list.0.pro \
src/tests/usr.bin/indent/token-stmt_list.0.stdout \
src/tests/usr.bin/indent/token-storage_class.0 \
src/tests/usr.bin/indent/token-storage_class.0.pro \
src/tests/usr.bin/indent/token-storage_class.0.stdout \
src/tests/usr.bin/indent/token-string_prefix.0 \
src/tests/usr.bin/indent/token-string_prefix.0.pro \
src/tests/usr.bin/indent/token-string_prefix.0.stdout \
src/tests/usr.bin/indent/token-switch_expr.0 \
src/tests/usr.bin/indent/token-switch_expr.0.pro \
src/tests/usr.bin/indent/token-switch_expr.0.stdout \
src/tests/usr.bin/indent/token-type_def.0 \
src/tests/usr.bin/indent/token-type_def.0.pro \
src/tests/usr.bin/indent/token-type_def.0.stdout \
src/tests/usr.bin/indent/token-unary_op.0 \
src/tests/usr.bin/indent/token-unary_op.0.pro \
src/tests/usr.bin/indent/token-unary_op.0.stdout \
src/tests/usr.bin/indent/token-while_expr.0 \
src/tests/usr.bin/indent/token-while_expr.0.pro \
src/tests/usr.bin/indent/token-while_expr.0.stdout
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index