fix(test): proper picking

This commit is contained in:
Barrett Ruth 2025-09-21 15:15:04 -04:00
parent 16ddbb5b4e
commit 0a39a2e6a2
2 changed files with 5 additions and 0 deletions

View file

@ -266,6 +266,7 @@ function M.setup(user_config)
error('No language configurations found')
end
table.sort(available_langs)
contest_config.default_language = available_langs[1]
end
end

View file

@ -194,6 +194,10 @@ describe('cp.picker', function()
picker.setup_problem('codeforces', '1951', 'a')
vim.wait(100, function()
return called_with ~= nil
end)
assert.is_table(called_with)
assert.is_table(called_with.fargs)
assert.equals('codeforces', called_with.fargs[1])