[test]
name = "FrequencyScorer scores by proportion of tag-sharing peers"
stage = "scoring"
scorer = "frequency"
[[items]]
content = "A"
tokens = 100
tags = ["web", "api"]
[[items]]
content = "B"
tokens = 100
tags = ["web"]
[[items]]
content = "C"
tokens = 100
tags = ["api", "db"]
[[items]]
content = "D"
tokens = 100
tags = ["cli"]
[[expected]]
content = "A"
score_approx = 0.666666666666667
[[expected]]
content = "B"
score_approx = 0.333333333333333
[[expected]]
content = "C"
score_approx = 0.333333333333333
[[expected]]
content = "D"
score_approx = 0.0
[tolerance]
score_epsilon = 1e-9