feat(interact): only expect test cases on non-interactive problems
This commit is contained in:
parent
41a8d1a75b
commit
edbf118c25
2 changed files with 57 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue