feat(io): cleanup view
This commit is contained in:
parent
07e4372a4a
commit
00987bb0ff
4 changed files with 17 additions and 13 deletions
|
|
@ -189,8 +189,8 @@ function M.scrape_all_tests(platform, contest_id, callback)
|
|||
local expected_file = 'io/' .. base_name .. '.' .. i .. '.cpout'
|
||||
local input_content = t.input:gsub('\r', '')
|
||||
local expected_content = t.expected:gsub('\r', '')
|
||||
vim.fn.writefile(vim.split(input_content, '\n', { trimempty = true }), input_file)
|
||||
vim.fn.writefile(vim.split(expected_content, '\n', { trimempty = true }), expected_file)
|
||||
vim.fn.writefile(vim.split(input_content, '\n'), input_file)
|
||||
vim.fn.writefile(vim.split(expected_content, '\n'), expected_file)
|
||||
end
|
||||
if type(callback) == 'function' then
|
||||
callback({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue