@@ -103,11 +103,7 @@ def test_invalid_chunk_size() -> None:
103103 ("Hello World" , 0 , 0 ),
104104 ],
105105)
106- def test_adjust_chunk_start (
107- text : str ,
108- approximate_start : int ,
109- expected_start : int
110- ) -> None :
106+ def test_adjust_chunk_start (text : str , approximate_start : int , expected_start : int ) -> None :
111107 """
112108 Test that the _adjust_chunk_start function correctly shifts
113109 the start index to avoid breaking words, unless no whitespace is found.
@@ -131,12 +127,7 @@ def test_adjust_chunk_start(
131127 ("Hello World" , 6 , 15 , 15 ),
132128 ],
133129)
134- def test_adjust_chunk_end (
135- text : str ,
136- start : int ,
137- approximate_end : int ,
138- expected_end : int
139- ) -> None :
130+ def test_adjust_chunk_end (text : str , start : int , approximate_end : int , expected_end : int ) -> None :
140131 """
141132 Test that the _adjust_chunk_end function correctly shifts
142133 the end index to avoid breaking words, unless no whitespace is found.
@@ -192,11 +183,7 @@ def test_adjust_chunk_end(
192183 ],
193184)
194185async def test_fixed_size_splitter_run (
195- text : str ,
196- chunk_size : int ,
197- chunk_overlap : int ,
198- approximate : bool ,
199- expected_chunks : list [str ]
186+ text : str , chunk_size : int , chunk_overlap : int , approximate : bool , expected_chunks : list [str ]
200187) -> None :
201188 """
202189 Test that 'FixedSizeSplitter.run' returns the expected chunks
0 commit comments