1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
[test]
name = "PriorityScorer ranks items by priority value"
stage = "scoring"
scorer = "priority"
# 3 items with distinct priorities.
# countWithPriority = 3, denominator = 2.
# priority 1: rank 0 → 0/2 = 0.0
# priority 5: rank 1 → 1/2 = 0.5
# priority 10: rank 2 → 2/2 = 1.0
[[items]]
content = "low"
tokens = 100
priority = 1
[[items]]
content = "medium"
tokens = 100
priority = 5
[[items]]
content = "high"
tokens = 100
priority = 10
[[expected]]
content = "low"
score_approx = 0.0
[[expected]]
content = "medium"
score_approx = 0.5
[[expected]]
content = "high"
score_approx = 1.0
[tolerance]
score_epsilon = 1e-9