1
0
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:
Subhomoy Haldar
2021-12-17 19:41:19 +05:30
committed by GitHub
parent 130d189fce
commit 4ecdb28f5a
2 changed files with 32 additions and 25 deletions

View File

@ -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() ? {