v/vlib/v/fmt/tests
Enzo 22e54e6703
fmt: fix formatting array decomposition (#7835)
2021-01-03 16:19:43 +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 fmt: fix anon fn call (#6120) 2020-08-13 20:05:59 +02:00
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 fmt: fix formatting array decomposition (#7835) 2021-01-03 16:19:43 +01:00
array_init_expected.vv fmt,vet: handle `var in [single_value]` (#5882) 2020-07-19 19:58:34 +02:00
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 fmt,vet: handle `var in [single_value]` (#5882) 2020-07-19 19:58:34 +02:00
array_init_keep.vv fmt: use single quotes around fixed string arr default expr (#7581) 2020-12-26 15:12:25 +02:00
array_newlines_keep.vv fmt: fix tests 2020-10-15 12:45:34 +02:00
array_slices_expected.vv fmt: lots of fixes 2020-04-25 17:49:16 +02:00
array_slices_input.vv fmt: lots of fixes 2020-04-25 17:49:16 +02:00
array_static_keep.vv vfmt: fix formatting for [4][4]int static arrays 2020-09-27 22:46:33 +03:00
asserts_keep.vv vmft2: support for multiline comments, CompIf, AssertStmt, octal literals 2020-03-24 22:18:58 +01:00
assign_keep.vv fmt: fix writing ConcatExpr (#6466) 2020-09-24 18:04:39 +02:00
attrs_keep.vv fmt: fix formatting enum with attributes (#6551) 2020-10-03 21:33:02 +03:00
blocks_expected.vv fmt: don't add newlines for UnsafeExpr (#6048) 2020-08-04 00:29:10 +02:00
blocks_input.vv fmt: don't add newlines for UnsafeExpr (#6048) 2020-08-04 00:29:10 +02:00
c_struct_init_keep.vv vfmt: add _keep.vv tests for the recent fixes, to prevent regressions 2020-07-02 17:50:21 +03:00
cast_expected.vv fmt: lots of fixes 2020-04-25 17:49:16 +02:00
cast_input.vv fmt: lots of fixes 2020-04-25 17:49:16 +02:00
chan_init_keep.vv vfmt: support `x chan Name` in fn args 2020-08-28 01:54:16 +03:00
chan_ops_keep.vv fmt: add support for `chan` types and operations (#6328) 2020-09-08 00:36:05 +02:00
char_literal_backtick_keep.vv parser: `expression evaluated but not used` error 2020-06-16 11:06:53 +02:00
comment_after_import_expected.vv parser: do not fail on comment direct after import (#7071) 2020-12-01 22:32:34 +02:00
comment_after_import_input.vv parser: do not fail on comment direct after import (#7071) 2020-12-01 22:32:34 +02:00
comments_expected.vv fmt: trim space in embedded comments (#7521) 2020-12-24 11:57:48 +01:00
comments_input.vv fmt: trim space in embedded comments (#7521) 2020-12-24 11:57:48 +01:00
comments_keep.vv fmt: keep comment between enum fields (#7566) 2020-12-25 21:41:59 +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: lots of fixes 2020-04-25 17:49:16 +02:00
concat_expr_input.vv fmt: lots of fixes 2020-04-25 17:49:16 +02:00
conditional_compilation_keep.vv vfmt: fix eating ? in `$if x ? {}`, missing newline in `__global ...` 2020-05-01 12:29:23 +03:00
conditions_expected.vv fmt: lots of fixes 2020-04-25 17:49:16 +02:00
conditions_input.vv fmt: lots of fixes 2020-04-25 17:49:16 +02:00
consts_expected.vv all: use `macos` consistently in os.user_os and the compiler 2020-09-29 22:32:20 +03:00
consts_input.vv all: use `macos` consistently in os.user_os and the compiler 2020-09-29 22:32:20 +03:00
consts_with_comments_keep.vv vfmt: handle comments after last const field 2020-08-27 15:07:49 +03: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
enum_comments_keep.vv vfmt: add _keep.vv tests for the recent fixes, to prevent regressions 2020-07-02 17:50:21 +03:00
enums_expected.vv fmt: split tests 2020-03-08 15:57:16 +01:00
enums_input.vv fmt: split tests 2020-03-08 15:57:16 +01:00
expressions_expected.vv interpolation: support '' (rounding like in C) 2020-10-16 17:28:11 +03:00
expressions_input.vv interpolation: support '' (rounding like in C) 2020-10-16 17:28:11 +03:00
file_with_just_imports_keep.vv vfmt: turn off module is imported but never used for vfmt 2020-07-11 15:03:37 +03:00
fixed_size_array_type_keep.vv fmt: use single quotes around fixed string arr default expr (#7581) 2020-12-26 15:12:25 +02: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 fmt: refactor `type_to_str` (#6607) 2020-10-12 18:41:42 +03:00
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: AnonFn with body is not single line (#7659) 2020-12-28 20:27:27 +02:00
fn_with_anon_params_keep.vv fmt: fix formatting of anon args (#6545) 2020-10-04 06:32:47 +02:00
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 vfmt: keep the source fn type alias names, instead of the expanded fn declarations 2020-11-05 20:21:37 +02:00
fntype_mut_args_with_optional_keep.vv vfmt: add a regression test for `type SocketMessageFn = fn (mut c Client, msg &Message) ? 2020-08-04 16:13:04 +03:00
fntype_return_optional_keep.vv vfmt: add a regression test for `type SocketMessageFn = fn (mut c Client, msg &Message) ? 2020-08-04 16:13:04 +03:00
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 vfmt: fix `x := Repo<User,Permission>{}` 2020-11-11 21:41:04 +02:00
go_stmt_expected.vv fmt: lots of fixes 2020-04-25 17:49:16 +02:00
go_stmt_input.vv fmt: lots of fixes 2020-04-25 17:49:16 +02:00
goto_expected.vv fmt: split tests 2020-03-08 15:57:16 +01:00
goto_input.vv fmt: split tests 2020-03-08 15:57:16 +01:00
if_keep.vv fmt: unwrap long single line ifs (#7608) 2020-12-27 14:20:30 +01:00
import_multiple_expected.vv fmt: use `import module` syntax 2020-04-14 19:32:23 +02:00
import_multiple_input.vv fmt: handle indents 2020-04-13 16:36:32 +02:00
import_multiple_with_alias_expected.vv fmt: use `import module` syntax 2020-04-14 19:32:23 +02:00
import_multiple_with_alias_input.vv fmt: handle indents 2020-04-13 16:36:32 +02:00
import_single_expected.vv fmt: add keep tests for struct init, fix warnings 2020-05-23 12:05:21 +03:00
import_single_input.vv fmt: add keep tests for struct init, fix warnings 2020-05-23 12:05:21 +03:00
import_with_alias_keep.vv fmt: keep module alias in struct decl field types (#7305) 2020-12-14 05:03:43 +01:00
include_vroot_keep.vv vfmt: fix `#include "@VROOT/path/x.h"` 2020-07-21 14:26:49 +03: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
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 fmt: fix formatting backtick char literal 2020-04-30 09:33:43 +02:00
loops_input.vv fmt: fix formatting backtick char literal 2020-04-30 09:33:43 +02:00
maps_expected.vv fmt: improve map value alignment (#7105) (#7151) 2020-12-06 02:04:45 +01:00
maps_in_fn_args__keep.vv vfmt: add maps_in_fn_args__keep.vv test for 3a369f5 2020-06-10 17:15:53 +03:00
maps_input.vv fmt: improve map value alignment (#7105) (#7151) 2020-12-06 02:04:45 +01:00
maps_keep.vv fmt: improve handling of map[k]v and []map[k]v types 2020-05-04 18:27:07 +03:00
match_expected.vv fmt: lots of fixes 2020-04-25 17:49:16 +02:00
match_input.vv fmt: lots of fixes 2020-04-25 17:49:16 +02:00
match_keep.vv fmt: update expr_is_single_line for MatchExpr, StructInit and CallExpr with or block (#7564) 2020-12-25 21:43:50 +02: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 ast: merge `IfExpr` and `CompIf` (#6011) 2020-09-18 00:58:54 +02:00
missing_import_expected.vv fmt: use `import module` syntax 2020-04-14 19:32:23 +02:00
missing_import_input.vv fmt: test automatic import insertion 2020-04-12 17:57:05 +02:00
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 fmt: interface decl fixes (#5829) 2020-07-14 18:52:28 +02:00
module_struct_keep.vv vfmt: skip skipped modules; add module test 2020-04-10 22:32:52 +02:00
multiline_comment_keep.vv fmt: lots of fixes 2020-04-25 17:49:16 +02:00
nested_map_type_keep.vv fmt: fix multiple problems with types (#6603) 2020-10-12 09:27:55 +03:00
no_main_expected.vv fmt: allow parsing files without `fn main()` (#5681) 2020-07-05 20:53:01 +02:00
no_main_input.vv fmt: allow parsing files without `fn main()` (#5681) 2020-07-05 20:53:01 +02:00
operator_overload_keep.vv ci: fix the failing build-module-docs job 2020-12-22 17:25:57 +02:00
optional_keep.vv fmt: fix optional formatting 2020-04-22 20:12:58 +02:00
optional_propagate_keep.vv fmt: insert space in front of `?` for propagation (#6250) 2020-08-29 01:56:43 +02:00
or_keep.vv fmt: make single-stmt `or` blocks single-line (#7126) 2020-12-04 13:25:23 +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 vfmt: add _keep.vv tests for the recent fixes, to prevent regressions 2020-07-02 17:50:21 +03:00
select_keep.vv ci: fix failing tests 2020-10-15 15:42:16 +03:00
shared_expected.vv fmt: make formatter know about new keywords `shared`, `rlock` (#5779) 2020-07-09 22:41:45 +02:00
shared_input.vv fmt: make formatter know about new keywords `shared`, `rlock` (#5779) 2020-07-09 22:41:45 +02:00
star__amp_int__cast_keep.vv vfmt: fix `x := *&int(ptr)` 2020-07-21 15:58:17 +03:00
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 another vfmt2 fix 2020-04-01 18:25:05 +02:00
string_quotes_expected.vv parser: `expression evaluated but not used` error 2020-06-16 11:06:53 +02:00
string_quotes_input.vv parser: `expression evaluated but not used` error 2020-06-16 11:06:53 +02:00
string_raw_and_cstr_keep.vv vfmt: fix eating `c` in `c'foo'` (#7009) 2020-11-29 10:39:50 +02:00
struct_default_field_expressions_keep.vv fmt: keep comments after struct decl default value (#7648) 2020-12-28 15:38:21 +02:00
struct_embed_keep.vv all: reimplement struct embedding with methods (#7506) 2020-12-23 19:12:49 +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 fmt: add keep tests for struct init, fix warnings 2020-05-23 12:05:21 +03: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 checker: check struct casting (#5864) 2020-08-14 14:57:08 +02:00
struct_init_with_ref_cast_keep.vv fmt: add struct init keep test, fix another &&Foo bug 2020-05-30 22:34:57 +03:00
struct_keep.vv fmt: add a test for struct embed (#7831) 2021-01-03 15:41:19 +01:00
struct_no_extra_attr_keep.vv parser: fix duplicated struct attrs on first field (#6859) 2020-11-17 21:25:54 +01: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 multiple things and format most of the compiler (#6631) 2020-10-15 22:12:59 +02:00
structs_input.vv parser/fmt: fix comments in structs/consts 2020-06-23 18:01:56 +02: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 builtin: x.vstring() instead of string(x) (#6102) 2020-08-10 18:05:26 +02:00
type_ptr_keep.vv scanner: fix parsing multiple .amp 2020-06-13 00:01:44 +02:00
typeof_keep.vv fmt: process TypeOf node 2020-04-03 11:59:53 +02:00
types_expected.vv all: refactor UnionSumType to SumType (#6944) 2020-11-25 13:09:40 +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