Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
tibor-reiss committed Nov 10, 2024
1 parent bc89a90 commit 82d869d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_tokenization_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1613,8 +1613,8 @@ def test_maximum_encoding_length_single_input(self):
self.assertEqual(len(overflowing_tokens), 2 + stride)
self.assertEqual(overflowing_tokens, sequence[-(2 + stride) :])
else:
truncated_sequence = information["input_ids"]
overflowing_tokens = information["overflowing_tokens"]
truncated_sequence = information["input_ids"][0]
overflowing_tokens = information["input_ids"][1]

self.assertEqual(len(truncated_sequence), total_length - 2)
self.assertEqual(truncated_sequence, sequence[:-2])
Expand Down

0 comments on commit 82d869d

Please sign in to comment.