Bahn: aisupport, Analyse-O2C-C2S, awesome-bahn-mcp-servers, beam-mcp,
Confluence_Bot, db-planet-mcp-server, O2C-Harness, project-audit,
Projekt-KIQ-HP, teamlandkarte-mcp
Dhive: Jury-Voting
Privat: CV, NoteGraph (NOTE: NoteGraph needs complete redo after consolidation)
Shared: AI-Orchestrator, OrgMyLife, power_skills_and_more
Shared/references: symphony (read-only)
Bahn repos remain available as independent remotes - this monorepo
pulls them in via subtree, the originals are untouched.
18 lines
406 B
Python
18 lines
406 B
Python
from __future__ import annotations
|
|
|
|
import difflib
|
|
|
|
|
|
def _ratio(a: str, b: str) -> int:
|
|
return int(difflib.SequenceMatcher(a=a, b=b).ratio() * 100)
|
|
|
|
|
|
def test_similarity_thresholds_behave_monotonically() -> None:
|
|
"""Similarity ratios should increase for more similar strings."""
|
|
|
|
a = "backend developer"
|
|
b1 = "backend dev"
|
|
b2 = "data engineer"
|
|
|
|
assert _ratio(a, b1) > _ratio(a, b2)
|