mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
flag, tests: inline a few const
s (#22174)
This commit is contained in:
parent
620e064110
commit
625e4df49a
1 changed files with 1 additions and 3 deletions
|
@ -7,8 +7,6 @@ const exe_and_v_flag_parser_args_with_tail = ['/path/to/exe', '--version', '-p',
|
|||
'--test', 'abc', '--done', '-p', 'two', '--live', 'run', '/path/to', 'platforms;android-21']
|
||||
const error_wrong_assignment_flags = ['--o=error']
|
||||
|
||||
const exe_and_v_flag_parser_help_short_arg = ['/path/to/exe', '-h']
|
||||
|
||||
struct Prefs {
|
||||
version bool @[short: v]
|
||||
is_live bool @[long: live]
|
||||
|
@ -95,7 +93,7 @@ fn test_long_v_style_with_tail_no_exe() {
|
|||
}
|
||||
|
||||
fn test_long_v_style_with_exe_and_short_alias() {
|
||||
prefs, _ := flag.to_struct[Prefs](exe_and_v_flag_parser_help_short_arg,
|
||||
prefs, _ := flag.to_struct[Prefs](['/path/to/exe', '-h'],
|
||||
skip: 1
|
||||
style: .v_flag_parser
|
||||
)!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue