cp.nvim/lua/cp
Barrett Ruth e685a8089f feat: add epsilon tolerance for floating-point output comparison
Problem: output comparison used exact string equality after whitespace
normalisation, causing correct solutions to fail on problems where
floating-point answers are accepted within a tolerance (e.g. 1e-6).

Solution: add an optional ui.panel.epsilon config value. When set,
actual and expected output are compared token-by-token: numeric tokens
are compared with math.abs(a - b) <= epsilon, non-numeric tokens fall
back to exact string equality. Per-problem epsilon can also be stored
in the cache and takes precedence over the global default.
2026-02-26 23:00:35 -05:00
..
commands fix: cleanup picker message 2025-12-04 18:12:10 -05:00
pickers feat(io): cleanup view 2025-11-06 01:31:50 -05:00
runner feat: add epsilon tolerance for floating-point output comparison 2026-02-26 23:00:35 -05:00
ui try to fix the setup 2026-02-18 14:13:37 -05:00
cache.lua feat: add epsilon tolerance for floating-point output comparison 2026-02-26 23:00:35 -05:00
config.lua feat: add epsilon tolerance for floating-point output comparison 2026-02-26 23:00:35 -05:00
constants.lua feat: codechef 2025-10-25 00:26:33 -04:00
health.lua fix: replace deprecated vim.loop with vim.uv 2026-02-26 22:45:07 -05:00
helpers.lua feat(ui): auto-hide source buffer on close 2025-10-24 14:47:12 -04:00
init.lua fix: surface runtime check failures as clean notifications 2026-02-18 17:25:50 -05:00
log.lua fix(cache): contest override 2025-10-04 12:48:57 -04:00
restore.lua fix: don't always open new window 2025-10-12 20:31:11 -04:00
scraper.lua fix: replace deprecated vim.loop with vim.uv 2026-02-26 22:45:07 -05:00
setup.lua style(setup): apply stylua formatting 2026-02-26 22:57:39 -05:00
state.lua fix: race condition & logs 2026-01-27 12:22:53 -05:00
utils.lua fix: replace deprecated vim.loop with vim.uv 2026-02-26 22:45:07 -05:00
version.lua fix: refactor 2025-09-21 11:19:00 -04:00