Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Maik Jablonka committed Sep 26, 2023
1 parent fa83a19 commit 03009ff
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/icl/test_fewshotpredictor.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,11 @@ def test_fewshotpredictor(get_llm):
assert predictor._support_set is not None
x, y = predictor._support_set
assert len(x) == 5 == len(y)
formatted = predictor._format_examples(x, y)
assert isinstance(formatted, str)
assert formatted.startswith("-")
parts = formatted.split("\n")
assert len(parts) == 5
for part in parts:
assert "-" in part
assert ":" in part

0 comments on commit 03009ff

Please sign in to comment.