Spaces:
Sleeping
Sleeping
| from app.services.commit_signal_patterns import is_explicit_global_signal, is_explicit_student_signal | |
| def test_explicit_student_signal_matches_first_person_preference(): | |
| assert is_explicit_student_signal("I prefer diagrams over equations") is True | |
| assert is_explicit_student_signal("The lecture covered diagrams") is False | |
| def test_explicit_global_signal_requires_stronger_wording(): | |
| assert is_explicit_global_signal("I generally prefer short explanations") is True | |
| assert is_explicit_global_signal("I prefer short explanations") is False # explicit but not global | |
| assert is_explicit_global_signal("Do not give me the complete code") is False | |
| def test_explicit_student_signal_matches_do_not_give_me(): | |
| assert is_explicit_student_signal("Do not give me the complete code") is True | |
| assert is_explicit_student_signal("Don't give me the complete code") is True | |