feat(interact): only expect test cases on non-interactive problems

This commit is contained in:
Barrett Ruth 2025-10-05 15:46:29 -04:00
parent 41a8d1a75b
commit edbf118c25
2 changed files with 57 additions and 3 deletions

View file

@ -57,7 +57,7 @@ function M.setup_contest(platform, contest_id, problem_id, language)
logger.log(('Fetching test cases...'):format(cached_len, #problems))
scraper.scrape_all_tests(platform, contest_id, function(ev)
local cached_tests = {}
if vim.tbl_isempty(ev.tests) then
if not ev.interactive and vim.tbl_isempty(ev.tests) then
logger.log(
("No tests found for problem '%s'."):format(ev.problem_id),
vim.log.levels.WARN