fix(ci): fix tests

This commit is contained in:
Barrett Ruth 2025-09-19 00:15:10 -04:00
parent 83a91e1985
commit 0de7c9c43c
2 changed files with 13 additions and 1 deletions

View file

@ -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

View file

@ -80,7 +80,6 @@ describe('cp integration', function()
default_language = 'cpp',
timeout_ms = 2000,
cpp = {
extension = 'cpp',
compile = { 'g++', '{source}', '-o', '{binary}' },
run = { '{binary}' },
},