Skip to content

Commit 279af54

Browse files
committed
add test_get_directive()
1 parent 92ef93f commit 279af54

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

tests/test_ai_tutor.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,17 @@ def msg(explanation_in:str) -> str:
9999
return d[explanation_in].lower()
100100

101101

102+
def test_get_directive(explanation_in:str, homework:Tuple[str]):
103+
result = ai_tutor.get_directive(explanation_in=explanation_in)
104+
105+
assert any(
106+
map(
107+
lambda x: x in result.lower(),
108+
homework
109+
)
110+
)
111+
112+
102113
def test_get_instruction(explanation_in:str, homework:Tuple[str],):
103114
result = ai_tutor.get_directive(explanation_in=explanation_in)
104115

0 commit comments

Comments
 (0)