feat: first draft of arbitrary compile mode

This commit is contained in:
Barrett Ruth 2025-09-15 08:11:15 -05:00
parent 67d2a8054c
commit 1ef68a4847
6 changed files with 212 additions and 16 deletions

View file

@ -270,7 +270,10 @@ local function test_problem()
local enabled_icon = test_states[result.id] and "[x]" or "[ ]"
local time_str = ("%.1fms"):format(result.time_ms)
table.insert(lines, ("%s Test %d %s %s (%s) {{{"):format(enabled_icon, result.id, status_icon, result.status, time_str))
table.insert(
lines,
("%s Test %d %s %s (%s) {{{"):format(enabled_icon, result.id, status_icon, result.status, time_str)
)
table.insert(lines, " Input:")
for _, line in ipairs(vim.split(result.input, "\n")) do
table.insert(lines, " " .. line)