feat: qol improvements
This commit is contained in:
parent
986e03c974
commit
5bf8c8960b
13 changed files with 810 additions and 0 deletions
46
tests/config_spec.lua
Normal file
46
tests/config_spec.lua
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
-- Unit tests for configuration management
|
||||
describe("cp.config", function()
|
||||
local config
|
||||
|
||||
before_each(function()
|
||||
config = require("cp.config")
|
||||
end)
|
||||
|
||||
describe("setup", function()
|
||||
it("returns default config when no user config provided", function()
|
||||
-- Test default configuration values
|
||||
end)
|
||||
|
||||
it("merges user config with defaults", function()
|
||||
-- Test config merging behavior
|
||||
end)
|
||||
|
||||
it("validates contest configurations", function()
|
||||
-- Test contest config validation
|
||||
end)
|
||||
|
||||
it("handles invalid config gracefully", function()
|
||||
-- Test error handling for bad configs
|
||||
end)
|
||||
end)
|
||||
|
||||
describe("platform validation", function()
|
||||
it("accepts valid platforms", function()
|
||||
-- Test platform validation
|
||||
end)
|
||||
|
||||
it("rejects invalid platforms", function()
|
||||
-- Test platform rejection
|
||||
end)
|
||||
end)
|
||||
|
||||
describe("language configurations", function()
|
||||
it("provides correct file extensions for languages", function()
|
||||
-- Test language -> extension mappings
|
||||
end)
|
||||
|
||||
it("provides correct compile commands", function()
|
||||
-- Test compile command generation
|
||||
end)
|
||||
end)
|
||||
end)
|
||||
Loading…
Add table
Add a link
Reference in a new issue