mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tools: add .gitattributes
with v init
and v new
(#12879)
This commit is contained in:
@ -12,7 +12,7 @@ fn init_and_check() ? {
|
||||
" println('Hello World!')",
|
||||
'}',
|
||||
'',
|
||||
].join('\n')
|
||||
].join_lines()
|
||||
|
||||
assert os.read_file('v.mod') ? == [
|
||||
'Module {',
|
||||
@ -23,7 +23,7 @@ fn init_and_check() ? {
|
||||
' dependencies: []',
|
||||
'}',
|
||||
'',
|
||||
].join('\n')
|
||||
].join_lines()
|
||||
|
||||
assert os.read_file('.gitignore') ? == [
|
||||
'# Binaries for programs and plugins',
|
||||
@ -36,7 +36,13 @@ fn init_and_check() ? {
|
||||
'*.dll',
|
||||
'vls.log',
|
||||
'',
|
||||
].join('\n')
|
||||
].join_lines()
|
||||
|
||||
assert os.read_file('.gitattributes') ? == [
|
||||
'*.v linguist-language=V text=auto eol=lf',
|
||||
'*.vv linguist-language=V text=auto eol=lf',
|
||||
'',
|
||||
].join_lines()
|
||||
}
|
||||
|
||||
fn test_v_init() ? {
|
||||
|
Reference in New Issue
Block a user