1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

fmt: minor array wrap improvement (#9420)

This commit is contained in:
Lukas Neubert
2021-03-22 23:06:12 +01:00
committed by GitHub
parent 801da20fd9
commit 1b572f75e8
12 changed files with 98 additions and 56 deletions

View File

@ -167,9 +167,10 @@ fn test_allow_to_build_usage_message() {
usage := fp.usage()
mut all_strings_found := true
for s in ['flag_tool', 'v0.0.0', 'an_int <int>', 'a_bool', 'bool_without', 'a_float <float>',
'a_string <string>', 'some int to define', 'some bool to define', 'this should appear on the next line',
'some float as well', 'your credit card number', 'The arguments should be at least 1 and at most 4 in number.',
'Usage', 'Options:', 'Description:', 'some short information about this tool'] {
'a_string <string>', 'some int to define', 'some bool to define',
'this should appear on the next line', 'some float as well', 'your credit card number',
'The arguments should be at least 1 and at most 4 in number.', 'Usage', 'Options:',
'Description:', 'some short information about this tool'] {
if !usage.contains(s) {
eprintln(" missing '$s' in usage message")
all_strings_found = false