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:
@ -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
|
||||
|
Reference in New Issue
Block a user