v/vlib/v/fmt/tests
joe-conigliaro d1224ffb5a
parser: error on non local array/map methods & add tests
2020-12-11 20:50:26 +11:00
..
anon_fn_as_param_keep.vv parser: error on non local array/map methods & add tests 2020-12-11 20:50:26 +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_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: do not wrap real multiline comments into single line in arrays (#6923) 2020-11-24 12:55:39 +01: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
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 vfmt: fix error with `return // comment` (#6914) 2020-11-23 11:36:20 +02:00
comments_input.vv vfmt: fix error with `return // comment` (#6914) 2020-11-23 11:36:20 +02:00
comments_keep.vv fmt: keep comments in struct init without fields (#7212) 2020-12-09 16:35:03 +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
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
enums_input.vv
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: fix multiple problems with types (#6603) 2020-10-12 09:27:55 +03: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_keep.vv fmt: do not add braces for trailing struct arg (#7072) 2020-12-04 11:22:26 +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
goto_input.vv
import_multiple_expected.vv
import_multiple_input.vv
import_multiple_with_alias_expected.vv
import_multiple_with_alias_input.vv
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: fix 'import time as t', then using t.sleep_ms() . 2020-05-22 22:31:24 +03:00
include_vroot_keep.vv vfmt: fix `#include "@VROOT/path/x.h"` 2020-07-21 14:26:49 +03:00
integer_literal_keep.vv all: refactor UnionSumType to SumType (#6944) 2020-11-25 13:09:40 +02:00
interface_declaration_comments_keep.vv vfmt: support comments after interface methods 2020-11-05 18:23:45 +02:00
labelled_break_continue_keep.vv fmt: fix labelled break & continue (#6889) 2020-11-20 14:12:40 +01: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_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
missing_import_input.vv
module_interface_keep.vv fmt: interface decl fixes (#5829) 2020-07-14 18:52:28 +02:00
module_struct_keep.vv
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
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: smarter wrap of orm lines (#7070) 2020-12-02 04:06:20 +01: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
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: fix struct field default expressions and tags 2020-05-29 21:22:27 +03:00
struct_embed_expected.vv all: struct embedding 2020-10-30 07:09:26 +01:00
struct_embed_input.vv all: struct embedding 2020-10-30 07:09:26 +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 all: refactor UnionSumType to SumType (#6944) 2020-11-25 13:09:40 +02:00
struct_no_extra_attr_keep.vv parser: fix duplicated struct attrs on first field (#6859) 2020-11-17 21:25:54 +01: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
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
void_optional_keep.vv fmt: make single-stmt `or` blocks single-line (#7126) 2020-12-04 13:25:23 +02:00