all repos — bibel @ c045b445fe953f81a929780728841400a44ce422

Unnamed repository; edit this file 'description' to name the repository.

build/test/README.md (view raw)

 1# bibel CI Test Suite
 2
 3This directory contains test scripts for verifying the bibel date progression system.
 4
 5## Test Files
 6
 7### quick_test.sh
 8
 9Quick version check that validates basic functionality.
10
11Run with:
12```bash
13cd /home/mjensen/Development/bibel/build/test
14./quick_test.sh
15```
16
17### test_dates.go
18
19Go program for more detailed date progression testing with specific test cases.
20Currently includes tests for:
21
22- Day 1 starting position
23- Current date verification
24- Reading mode starting points
25- Wrap-around test
26- Lookahead rule test
27
28To run:
29```bash
30cd /home/mjensen/Development/bibel
31go run build/test/test_dates.go
32```
33
34## Adding New Tests
35
36When modifying the date progression system, update the test cases in `test_dates.go`
37to verify the changes don't break existing functionality.
38
39## Expected Behavior
40
41The date progression system should:
421. Show 12 verses per day (configurable via `verses_per_day` in config)
432. Progress through the selected reading mode (evangelion, new_testament,
44   old_testament, bible)
453. Wrap around when reaching the end of the reading mode
464. Apply lookahead rule: if less than 12 verses remain in a chapter, extend to
47   chapter end
485. `evangelion` and `new_testament` modes should start at the same position
49   (Matthew 1:1)