@@ -23,9 +23,9 @@ final class RecursiveCharacterTextSplitterTests: XCTestCase {
2323 endUTF16Offset: 97
2424 ) ,
2525 . init(
26- text: " of Congress and the Cabinet. Justices of the Supreme Court. My fellow Americans. " ,
27- startUTF16Offset: 97 ,
28- endUTF16Offset: 110
26+ text: " of Congress and the Cabinet. Justices of the Supreme Court. My fellow Americans." ,
27+ startUTF16Offset: 81 ,
28+ endUTF16Offset: 162
2929 ) ,
3030 ] )
3131 }
@@ -76,43 +76,43 @@ final class RecursiveCharacterTextSplitterTests: XCTestCase {
7676 [
7777 . init(
7878 text: " protocol Animal { \n var name: String { get } \n var legs: Int { get } \n func makeSound() \n } \n " ,
79- startUTF16Offset: 97 ,
80- endUTF16Offset: 110
79+ startUTF16Offset: 0 ,
80+ endUTF16Offset: 96
8181 ) ,
8282 . init(
8383 text: " \n @MainActor " ,
84- startUTF16Offset: 97 ,
85- endUTF16Offset: 110
84+ startUTF16Offset: 96 ,
85+ endUTF16Offset: 107
8686 ) ,
8787 . init(
8888 text: " \n private class Dog: Animal { \n var name: String \n var legs: Int \n init(name: String, legs: " ,
89- startUTF16Offset: 97 ,
90- endUTF16Offset: 110
89+ startUTF16Offset: 107 ,
90+ endUTF16Offset: 203
9191 ) ,
9292 . init(
93- text: " String, legs: Int) { \n self.name = name \n self.legs = legs \n } \n func makeSound() " ,
94- startUTF16Offset: 97 ,
95- endUTF16Offset: 110
93+ text: " String, legs: Int) {\n self.name = name \n self.legs = legs \n } \n func makeSound() " ,
94+ startUTF16Offset: 189 ,
95+ endUTF16Offset: 287
9696 ) ,
9797 . init(
98- text: " func makeSound() { \n print( \" Woof! \" ) \n } \n } \n " ,
99- startUTF16Offset: 97 ,
100- endUTF16Offset: 110
98+ text: " func makeSound() {\n print( \" Woof! \" ) \n } \n } \n " ,
99+ startUTF16Offset: 267 ,
100+ endUTF16Offset: 321
101101 ) ,
102102 . init(
103103 text: " \n final class Cat: Animal { \n var name: String \n var legs: Int \n init(name: String, legs: Int) " ,
104- startUTF16Offset: 97 ,
105- endUTF16Offset: 110
104+ startUTF16Offset: 321 ,
105+ endUTF16Offset: 420
106106 ) ,
107107 . init(
108- text: " String, legs: Int) { \n self.name = name \n self.legs = legs \n } \n func makeSound() " ,
109- startUTF16Offset: 97 ,
110- endUTF16Offset: 110
108+ text: " String, legs: Int) {\n self.name = name \n self.legs = legs \n } \n func makeSound() " ,
109+ startUTF16Offset: 401 ,
110+ endUTF16Offset: 499
111111 ) ,
112112 . init(
113- text: " func makeSound() { \n print( \" Meow! \" ) \n } \n } " ,
114- startUTF16Offset: 97 ,
115- endUTF16Offset: 110
113+ text: " func makeSound() {\n print( \" Meow! \" ) \n } \n } " ,
114+ startUTF16Offset: 479 ,
115+ endUTF16Offset: 532
116116 ) ,
117117 ]
118118 )
0 commit comments