https://gitlab.synchro.net/main/sbbs/-/commit/28aaaca6e08e6b38f1b1586f
Added Files:
src/doors/clans-src/src/tests/test_config.c test_quests.c test_reg.c test_reset.c
Modified Files:
src/doors/clans-src/CLAUDE.md src/doors/clans-src/docs/testability.md src/doors/clans-src/src/tests/GNUmakefile test_platform.c
Log Message:
Add comprehensive unit tests for pure functions in testability.md
Created four new test suites covering 46 test cases for pure functions:
- test_platform.c: Extended with 20 tests for IsLeapYear, DaysSinceJan1,
FileName, FreeFileList, fullpath (54 total tests)
- test_quests.c: 11 tests for ClearFlags, SetFlag, ClearFlag, FlagSet
- test_reset.c: 6 tests for InitEmpire, GenerateGameID, ClearFlags
- test_config.c: 4 tests for MailerTypeName
- test_reg.c: 5 tests for Jumble and IsRegged (empty/wrong code branches)
Fixed testability.md errors:
- user.c GetClanNameID: marked Disk Read = Y (fopen/fseek/fread)
- unix_wrappers.c fullpath: marked Disk Read = Y (getcwd filesystem access)
Added bug-handling rule to CLAUDE.md: when potential bugs are found during unrelated tasks, pause to ask user to Ignore, add to ToDo, or Chat about it. All work continues after decision.
All unit tests pass (29 binaries, 300+ tests).
Integration tests pass (115/115).
Co-Authored-By: Claude Haiku 4.5 <
noreply@anthropic.com>
---
■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net