We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20b2a9a commit 8805568Copy full SHA for 8805568
tests/sampling/test_text.py
@@ -221,7 +221,7 @@ def test_short_prompt_request(self):
221
result = self.sampler.sample(scenario)
222
self.assertIsInstance(result, UserChatRequest)
223
# The prompt will be the 4-digit number, truncated to 1 char
224
- self.assertEqual(result.prompt, str(result.prompt)[0])
+ self.assertEqual(len(result.prompt), 1)
225
self.assertGreater(len(result.prompt), 0)
226
227
def test_empty_dataset(self):
0 commit comments