fix(ci): formatting;

This commit is contained in:
Barrett Ruth 2025-09-18 21:30:03 -04:00
parent 28182e1a5f
commit a5cf5cb5d2
10 changed files with 226 additions and 226 deletions

View file

@ -1,12 +1,12 @@
-- Integration tests for complete workflows
describe("cp.nvim integration", function()
describe('cp.nvim integration', function()
local cp
local temp_dir
before_each(function()
cp = require("cp")
cp = require('cp')
temp_dir = vim.fn.tempname()
vim.fn.mkdir(temp_dir, "p")
vim.fn.mkdir(temp_dir, 'p')
vim.api.nvim_set_current_dir(temp_dir)
-- Set up with minimal config
@ -15,22 +15,22 @@ describe("cp.nvim integration", function()
contests = {
codeforces = {
dir = temp_dir,
url = "mock://codeforces.com",
url = 'mock://codeforces.com',
languages = {
cpp = { extension = "cpp", compile = "g++ -o %s %s" }
}
}
}
cpp = { extension = 'cpp', compile = 'g++ -o %s %s' },
},
},
},
})
end)
after_each(function()
vim.fn.delete(temp_dir, "rf")
vim.cmd("silent! %bwipeout!")
vim.fn.delete(temp_dir, 'rf')
vim.cmd('silent! %bwipeout!')
end)
describe("complete problem setup workflow", function()
it("handles :CP codeforces 1800 A workflow", function()
describe('complete problem setup workflow', function()
it('handles :CP codeforces 1800 A workflow', function()
-- Test complete setup from command to file creation
-- 1. Parse command
-- 2. Set up directory structure
@ -39,28 +39,28 @@ describe("cp.nvim integration", function()
-- 5. Switch to buffer
end)
it("handles CSES workflow", function()
it('handles CSES workflow', function()
-- Test CSES-specific complete workflow
end)
it("handles language switching", function()
it('handles language switching', function()
-- Test switching languages for same problem
end)
end)
describe("problem navigation workflow", function()
it("navigates between problems in contest", function()
describe('problem navigation workflow', function()
it('navigates between problems in contest', function()
-- Test :CP next/:CP prev workflow
-- Requires cached contest metadata
end)
it("maintains state across navigation", function()
it('maintains state across navigation', function()
-- Test that work isn't lost when switching problems
end)
end)
describe("test panel workflow", function()
it("handles complete testing workflow", function()
describe('test panel workflow', function()
it('handles complete testing workflow', function()
-- 1. Set up problem
-- 2. Write solution
-- 3. Open test panel (:CP test)
@ -69,46 +69,46 @@ describe("cp.nvim integration", function()
-- 6. Close panel
end)
it("handles debug workflow", function()
it('handles debug workflow', function()
-- Test :CP test --debug workflow
end)
end)
describe("file system integration", function()
it("maintains proper directory structure", function()
describe('file system integration', function()
it('maintains proper directory structure', function()
-- Test that files are organized correctly
end)
it("handles existing files appropriately", function()
it('handles existing files appropriately', function()
-- Test behavior when problem already exists
end)
it("cleans up temporary files", function()
it('cleans up temporary files', function()
-- Test cleanup of build artifacts
end)
end)
describe("error recovery", function()
it("recovers from network failures gracefully", function()
describe('error recovery', function()
it('recovers from network failures gracefully', function()
-- Test behavior when scraping fails
end)
it("recovers from compilation failures", function()
it('recovers from compilation failures', function()
-- Test error handling in compilation
end)
it("handles corrupted cache gracefully", function()
it('handles corrupted cache gracefully', function()
-- Test cache corruption recovery
end)
end)
describe("multi-session behavior", function()
it("persists state across Neovim restarts", function()
describe('multi-session behavior', function()
it('persists state across Neovim restarts', function()
-- Test that contest/problem state persists
end)
it("handles concurrent usage", function()
it('handles concurrent usage', function()
-- Test multiple Neovim instances
end)
end)
end)
end)