Skip to content

Commit 655421c

Browse files
authored
Add tests for edge cases in sentiment prediction
1 parent 937dd58 commit 655421c

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎tests/test_edge_cases.py‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from nlp_model.sentiment_model import predict_sentiment
2+
3+
4+
def test_empty_input():
5+
result = predict_sentiment("")
6+
assert result == "neutral"
7+
8+
9+
def test_numeric_input():
10+
result = predict_sentiment("12345")
11+
assert result == "neutral"

0 commit comments

Comments
 (0)