fix(ci): fix tests
This commit is contained in:
parent
83a91e1985
commit
0de7c9c43c
2 changed files with 13 additions and 1 deletions
|
|
@ -143,6 +143,19 @@ function M.setup(user_config)
|
|||
end
|
||||
|
||||
local config = vim.tbl_deep_extend('force', M.defaults, user_config or {})
|
||||
|
||||
for contest_name, contest_config in pairs(config.contests) do
|
||||
for lang_name, lang_config in pairs(contest_config) do
|
||||
if type(lang_config) == 'table' and not lang_config.extension then
|
||||
if lang_name == 'cpp' then
|
||||
lang_config.extension = 'cpp'
|
||||
elseif lang_name == 'python' then
|
||||
lang_config.extension = 'py'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return config
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -80,7 +80,6 @@ describe('cp integration', function()
|
|||
default_language = 'cpp',
|
||||
timeout_ms = 2000,
|
||||
cpp = {
|
||||
extension = 'cpp',
|
||||
compile = { 'g++', '{source}', '-o', '{binary}' },
|
||||
run = { '{binary}' },
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue