{"id":"some-solutions-embed-tests","text":"Some solution files (e.g., `count-prefixes-of-a-given-string/solution.py`) contain both the algorithm and a `unittest`-based test class in the same file, with a `__main__` guard for direct execution, rather than using a separate `test_solution.py`.","truth_value":"IN","source":"entries/2026/06/06/count-prefixes-of-a-given-string-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"some-solutions-embed-tests","truth_value":"IN","reason":"premise"}]}}