v/vlib/v/fmt/tests
zakuro 51c286df5a
fmt: fix bug that vfmt removes emmbeded struct in struct decl (#8775)
2021-02-16 12:45:56 +01:00
..
anon_fn_as_param_keep.vv fmt: fix formatting in anon_fn_as_param_keep.vv 2020-12-11 21:13:18 +11:00
anon_fn_call_keep.vv
anon_fn_expected.vv fmt: fix tests 2020-10-15 12:45:34 +02:00
anon_fn_input.vv fmt: fix tests 2020-10-15 12:45:34 +02:00
array_decomposition_keep.vv parser: change array decompose syntax (#7965) 2021-01-09 22:48:23 +01:00
array_init_expected.vv
array_init_inline_comments_keep.vv vfmt: fix `match x { 10 /* ... */ {} }` and `a := [1/* x */, /* y */2, 3]` 2020-11-11 22:59:43 +02:00
array_init_input.vv
array_init_keep.vv doc, fmt: use `map{key: value}` syntax for map literals (#8623) 2021-02-08 16:57:42 +02:00
array_newlines_keep.vv fmt: fix tests 2020-10-15 12:45:34 +02:00
array_slices_expected.vv
array_slices_input.vv
array_static_keep.vv fmt: align each contiguous field of struct. not the whole. (#7981) 2021-01-12 04:38:43 +01:00
asserts_expected.vv fmt: assert (a == b) -> assert a == b (#8351) 2021-01-26 10:36:21 +01:00
asserts_input.vv fmt: assert (a == b) -> assert a == b (#8351) 2021-01-26 10:36:21 +01:00
asserts_keep.vv
attrs_keep.vv
bin2v_keep.vv fmt: test bin2v output formatting (#7926) 2021-01-07 21:36:59 +01:00
blocks_expected.vv
blocks_input.vv
c_struct_init_keep.vv
cast_expected.vv
cast_input.vv
chan_init_keep.vv fmt: do not generate `import` statements for auto imports (#7966) 2021-01-08 17:42:40 +01:00
chan_ops_keep.vv vfmt: shorten `main.const_name` to just `const_name` 2021-01-25 20:57:33 +02:00
chan_or_keep.vv vfmt: shorten `main.const_name` to just `const_name` 2021-01-25 20:57:33 +02:00
char_literal_backtick_keep.vv
comments_embedded_keep.vv fmt: keep lines of comments inside an array (#8420) 2021-01-29 20:19:14 +02:00
comments_expected.vv fmt: keep lines of comments inside an array (#8420) 2021-01-29 20:19:14 +02:00
comments_input.vv fmt: better newline handling in block comments (#8325) 2021-01-24 22:08:24 +01:00
comments_keep.vv fmt: keep comments after imports (#8483) 2021-02-01 14:45:08 +01:00
comptime_field_selector_keep.vv parser: add warning for s.$field.name without brackets (#8411) 2021-01-30 12:56:10 +01:00
comptime_field_selector_parentheses_keep.vv all: implement basic comptime field selector (#7888) 2021-01-05 16:11:43 +02:00
comptime_keep.vv vfmt: fix eating of `app.$method(vars)`; format vlib/vweb/vweb.v 2020-11-14 13:55:10 +02:00
concat_expr_expected.vv fmt: better ternary concat wrapping (#8379) 2021-01-28 11:23:48 +01:00
concat_expr_input.vv fmt: better ternary concat wrapping (#8379) 2021-01-28 11:23:48 +01:00
conditional_compilation_keep.vv
conditions_expected.vv
conditions_input.vv
consts_expected.vv
consts_input.vv
consts_with_comments_keep.vv
embed_file_keep.vv all: add support for the `x := $embed_file('v.png')` compile time call (#8048) 2021-01-14 16:20:11 +02:00
empty_curlies_and_parens_keep.vv fmt: keep empty curlies and parenthesis as they are (#7329) 2020-12-22 23:43:48 +01:00
empty_lines_expected.vv fmt: keep single empty lines (#8189) 2021-01-19 14:49:40 +01:00
empty_lines_input.vv fmt: keep single empty lines (#8189) 2021-01-19 14:49:40 +01:00
empty_lines_keep.vv fmt: keep single empty lines (#8189) 2021-01-19 14:49:40 +01:00
enum_comments_keep.vv
enums_expected.vv
enums_input.vv
expressions_expected.vv fmt: unwrap long infix exprs inside parenthesis if necessary (#8609) 2021-02-07 23:10:39 +01:00
expressions_input.vv builtin: rename `any_*` -> `*_literal` - 2. part (#8032) 2021-01-11 22:58:15 +01:00
file_with_just_imports_keep.vv
fixed_size_array_type_keep.vv fmt: change `[1,2,3]!!` to `[1,2,3]!` (#8081) 2021-01-13 08:32:17 +01:00
fn_headers_with_no_bodies_keep.vv vfmt: skip {} for pure fn declarations (let the bodies hit the floor) 2020-11-05 18:59:36 +02:00
fn_multi_return_keep.vv
fn_trailing_arg_syntax_expected.vv fmt: fix unexpected `comment`, expecting struct key for trailing arg syntax (#7658) 2020-12-28 20:26:24 +02:00
fn_trailing_arg_syntax_input.vv fmt: fix unexpected `comment`, expecting struct key for trailing arg syntax (#7658) 2020-12-28 20:26:24 +02:00
fn_trailing_arg_syntax_keep.vv fmt: intelligent newlines for trailing arg syntax (#7748) 2021-01-10 17:39:37 +01:00
fn_with_anon_params_keep.vv
fntype_alias_array_keep.vv vfmt: fix `type MyFn = fn (int) int mut arr := []MyFn{}` 2020-12-09 15:18:45 +02:00
fntype_alias_keep.vv all: rename `[ref_only]` -> `[heap]` (#8718) 2021-02-13 16:52:01 +02:00
fntype_mut_args_with_optional_keep.vv
fntype_return_optional_keep.vv
functions_expected.vv fmt: fix tests 2020-10-15 12:45:34 +02:00
functions_input.vv fmt: fix tests 2020-10-15 12:45:34 +02:00
generic_structs_keep.vv fmt: align each contiguous field of struct. not the whole. (#7981) 2021-01-12 04:38:43 +01:00
generics_keep.vv fmt: keep generic type in method call (#7874) 2021-01-05 01:29:58 +01:00
go_stmt_expected.vv fmt: keep single empty lines (#8189) 2021-01-19 14:49:40 +01:00
go_stmt_input.vv
goto_expected.vv
goto_input.vv
hashstmt_expected.vv fmt: insert newline after last HashStmt (#8482) 2021-02-01 14:50:41 +01:00
hashstmt_input.vv fmt: insert newline after last HashStmt (#8482) 2021-02-01 14:50:41 +01:00
hashstmt_keep.vv fmt: insert newline after last HashStmt (#8482) 2021-02-01 14:50:41 +01:00
if_brace_on_newline_expected.vv fmt: put the opening brace on a new line again for infix (#8336) 2021-01-26 11:19:32 +01:00
if_brace_on_newline_input.vv fmt: put the opening brace on a new line again for infix (#8336) 2021-01-26 11:19:32 +01:00
if_expected.vv fmt: single line ternary return (#8605) 2021-02-08 00:28:46 +01:00
if_input.vv fmt: single line ternary return (#8605) 2021-02-08 00:28:46 +01:00
if_ternary_expected.vv fmt: better function call wrapping inside ternary if branches (#8604) 2021-02-06 21:46:52 +01:00
if_ternary_input.vv fmt: better function call wrapping inside ternary if branches (#8604) 2021-02-06 21:46:52 +01:00
if_ternary_keep.vv fmt: keep single line if in struct init (#8734) 2021-02-14 19:22:24 +01:00
import_keep.vv fmt: keep comments between and after imports (#8637) 2021-02-08 19:48:48 +02:00
import_multiple_expected.vv
import_multiple_input.vv fmt: remove duplicated imports (#8433) 2021-01-30 11:04:36 +02:00
import_multiple_with_alias_expected.vv
import_multiple_with_alias_input.vv
import_selective_expected.vv fmt: remove unused selective imports (#8595) 2021-02-07 03:58:43 +01:00
import_selective_input.vv fmt: remove unused selective imports (#8595) 2021-02-07 03:58:43 +01:00
import_single_keep.vv fmt: keep comments after imports (#8483) 2021-02-01 14:45:08 +01:00
import_with_alias_keep.vv fmt: keep module alias in struct decl field types (#7305) 2020-12-14 05:03:43 +01:00
infix_expr_expected.vv fmt: unwrap long infix exprs inside parenthesis if necessary (#8609) 2021-02-07 23:10:39 +01:00
infix_expr_input.vv fmt: unwrap long infix exprs inside parenthesis if necessary (#8609) 2021-02-07 23:10:39 +01:00
integer_literal_keep.vv fmt: keep _ separator in number literals (#7495) 2020-12-23 14:48:43 +02:00
interface_declaration_comments_keep.vv fmt: keep interface comments between methods (#7650) 2020-12-28 18:14:55 +02:00
interface_variadic_keep.vv parser: fix parsing interface methods with varargs (#8229) 2021-01-20 23:15:02 +02:00
labelled_break_continue_keep.vv fmt: fix labelled break & continue (#6889) 2020-11-20 14:12:40 +01:00
language_prefixes_keep.vv vfmt: do not replace module aliases in fn param and return types (#7472) 2020-12-22 22:38:13 +02:00
loops_expected.vv
loops_input.vv
manualfree_keep.v parser,fmt: implement `[manualfree] module abc` for opting out *all* fns in a given .v from autofree 2021-01-08 17:24:42 +02:00
maps_expected.vv doc, fmt: use `map{key: value}` syntax for map literals (#8623) 2021-02-08 16:57:42 +02:00
maps_in_fn_args__keep.vv
maps_input.vv fmt: improve map value alignment (#7105) (#7151) 2020-12-06 02:04:45 +01:00
maps_keep.vv doc, fmt: use `map{key: value}` syntax for map literals (#8623) 2021-02-08 16:57:42 +02:00
maps_of_fns_with_string_keys_keep.vv docs: fix functions in array/map example (#8695) 2021-02-12 21:10:54 +02:00
match_expected.vv fmt: keep user choice for newlines in match branches (#8418) 2021-01-30 11:57:57 +01:00
match_input.vv fmt: keep user choice for newlines in match branches (#8418) 2021-01-30 11:57:57 +01:00
match_keep.vv fmt: keep user choice for newlines in match branches (#8418) 2021-01-30 11:57:57 +01:00
match_range_expression_branches_keep.vv dont allow method on non-local types & no mod for arrays. closes #6971 2020-11-30 11:43:22 +11:00
match_with_commented_branches_keep.vv
missing_import_expected.vv
missing_import_input.vv
module_alias_keep.vv vfmt: do not replace module aliases in fn param and return types (#7472) 2020-12-22 22:38:13 +02:00
module_interface_keep.vv
module_struct_keep.vv
multi_generic_test_keep.vv all: implement multiple generics (#8231) 2021-01-22 13:49:56 +01:00
multiline_comment_keep.vv
nested_map_type_keep.vv
newlines_keep.vv fmt: keep newlines between toplevel stmts (#8383) 2021-01-29 12:17:59 +02:00
no_main_expected.vv
no_main_input.vv
offset_keep.vv all: add offsetof (#8380) 2021-01-30 12:57:09 +01:00
operator_overload_keep.vv ci: fix the failing build-module-docs job 2020-12-22 17:25:57 +02:00
optional_keep.vv
optional_propagate_keep.vv
or_keep.vv fmt: fix possible code corruption by unwrapped single line if (#8780) 2021-02-16 10:13:48 +02:00
orm_keep.vv fmt: keep order by in orm blocks (#7576) 2020-12-26 14:18:09 +02:00
proto_module_importing_vproto_keep.vv vfmt: fix deep nested map types, using f.table.type_to_str 2020-10-13 16:08:25 +03:00
ref_type_cast_keep.vv
select_keep.vv fmt: smarter if condition wrapping (#8201) 2021-01-23 10:33:22 +02:00
shared_expected.vv fmt: enable shared return types (#8614) 2021-02-06 21:25:06 +01:00
shared_input.vv fmt: enable shared return types (#8614) 2021-02-06 21:25:06 +01:00
star__amp_int__cast_keep.vv
string_interpolation_expected.vv fmt: fix multiple things and format most of the compiler (#6631) 2020-10-15 22:12:59 +02:00
string_interpolation_input.vv fmt: fix tests 2020-10-15 12:45:34 +02:00
string_interpolation_literal_keep.vv fmt: keep braces around @ escaped fields in string interpolation (#8488) 2021-02-01 11:04:57 +02:00
string_quotes_expected.vv fmt: improve string quotes (#8075) 2021-01-13 06:05:27 +01:00
string_quotes_input.vv fmt: improve string quotes (#8075) 2021-01-13 06:05:27 +01:00
string_raw_and_cstr_keep.vv vfmt: fix eating `c` in `c'foo'` (#7009) 2020-11-29 10:39:50 +02:00
struct_decl_keep.vv fmt: keep __global in struct declarations (#8584) 2021-02-05 16:46:43 +01:00
struct_default_field_expressions_keep.vv fmt: align struct field comments (#7632) 2021-01-03 21:10:25 +01:00
struct_embed_keep.vv fmt: fix bug that vfmt removes emmbeded struct in struct decl (#8775) 2021-02-16 12:45:56 +01:00
struct_fn_fields_expected.vv fmt: fix broken formatting in fn struct fields (#7794) 2021-01-02 16:36:31 +01:00
struct_fn_fields_input.vv fmt: fix broken formatting in fn struct fields (#7794) 2021-01-02 16:36:31 +01:00
struct_init_keep.vv parser: deprecate `{var |` struct update (#8618) 2021-02-08 17:03:05 +02:00
struct_init_with_comments_keep.vv vfmt: support inline comments before fields in struct initializations 2020-11-05 18:49:52 +02:00
struct_init_with_custom_len_keep.vv fmt: align struct field comments (#7632) 2021-01-03 21:10:25 +01:00
struct_init_with_ref_cast_keep.vv
struct_keep.vv fmt: correct indent for StructDecl multi line default exprs (#8148) 2021-01-17 05:01:55 +01:00
struct_no_extra_attr_keep.vv all: rename `[ref_only]` -> `[heap]` (#8718) 2021-02-13 16:52:01 +02:00
struct_update_comment_keep.vv vfmt: fix comments before ...f in Abc{...f} (#7870) 2021-01-04 21:01:35 +02:00
struct_update_keep.vv parser: struct updating syntax with `Abc{...oldabc newfield: val}` (#7865) 2021-01-04 20:19:03 +02:00
struct_with_fn_fields_keep.vv vfmt: fix `struct Abc { field fn() ? }` 2020-12-18 11:32:04 +02:00
structs_expected.vv fmt: fix bug that vfmt removes emmbeded struct in struct decl (#8775) 2021-02-16 12:45:56 +01:00
structs_input.vv fmt: fix bug that vfmt removes emmbeded struct in struct decl (#8775) 2021-02-16 12:45:56 +01:00
sum_smartcast_keep.vv all: refactor UnionSumType to SumType (#6944) 2020-11-25 13:09:40 +02:00
to_string_2_forms_keep.vv
type_ptr_keep.vv parser: support casting to a pointer to array (#7861) 2021-01-04 18:22:04 +02:00
typeof_keep.vv fmt: change `[1,2,3]!!` to `[1,2,3]!` (#8081) 2021-01-13 08:32:17 +01:00
types_expected.vv fmt: keep newlines between toplevel stmts (#8383) 2021-01-29 12:17:59 +02:00
types_input.vv all: refactor UnionSumType to SumType (#6944) 2020-11-25 13:09:40 +02:00
union_keep.vv vfmt: fix `union {}` declarations 2020-11-03 00:35:12 +02:00
unsafe_keep.vv vfmt: keep UnsafeExpr linebreacks as set by developer (#7558) 2020-12-25 16:52:16 +02:00
void_optional_keep.vv fmt: make single-stmt `or` blocks single-line (#7126) 2020-12-04 13:25:23 +02:00
vscript_keep.vv fmt: keep same line comments after arr.sort() in vsh files (#8026) 2021-01-13 20:10:17 +02:00