@@ -22,7 +22,7 @@ export const CORE_PARSER_TESTS = [
2222 meta : {
2323 byteOffset : 0 ,
2424 byteCount : 5 ,
25- cursor : 5 ,
25+ charCount : 5 ,
2626 delimiter : ',' ,
2727 newline : '\n' ,
2828 } ,
@@ -37,7 +37,7 @@ export const CORE_PARSER_TESTS = [
3737 meta : {
3838 byteOffset : 0 ,
3939 byteCount : 5 ,
40- cursor : 22 ,
40+ charCount : 11 ,
4141 delimiter : ',' ,
4242 newline : '\n' ,
4343 } ,
@@ -567,7 +567,7 @@ export const CORE_PARSER_TESTS = [
567567 errors : [ ] ,
568568 meta : {
569569 // renamedHeaders: { A_1: 'A', A_2: 'A', A_3: 'A' },
570- cursor : 15 ,
570+ charCount : 15 ,
571571 } ,
572572 } ,
573573 } ,
@@ -582,7 +582,7 @@ export const CORE_PARSER_TESTS = [
582582 errors : [ ] ,
583583 meta : {
584584 // renamedHeaders: { c_2: 'c', c_3: 'c' },
585- cursor : 17 ,
585+ charCount : 17 ,
586586 } ,
587587 } ,
588588 } ,
@@ -597,7 +597,7 @@ export const CORE_PARSER_TESTS = [
597597 errors : [ ] ,
598598 meta : {
599599 // renamedHeaders: { __proto___1: '__proto__', __proto___2: '__proto__' },
600- cursor : 35 ,
600+ charCount : 35 ,
601601 } ,
602602 } ,
603603 } ,
@@ -1078,80 +1078,80 @@ export const PARSE_TESTS = [
10781078 } ,
10791079 } ,
10801080 {
1081- description : 'Using \\r\\n endings uses \\r\\n linebreak ' ,
1081+ description : 'Using \\r\\n endings uses \\r\\n newline ' ,
10821082 text : 'a,b\r\nc,d\r\ne,f\r\ng,h\r\ni,j' ,
10831083 config : { } ,
10841084 expected : {
10851085 data : [ [ 'a' , 'b' ] , [ 'c' , 'd' ] , [ 'e' , 'f' ] , [ 'g' , 'h' ] , [ 'i' , 'j' ] ] ,
10861086 errors : [ ] ,
10871087 meta : {
1088- linebreak : '\r\n' ,
1088+ newline : '\r\n' ,
10891089 delimiter : ',' ,
1090- cursor : 23 ,
1090+ charCount : 23 ,
10911091 aborted : false ,
10921092 renamedHeaders : null ,
10931093 } ,
10941094 } ,
10951095 } ,
10961096 {
1097- description : 'Using \\n endings uses \\n linebreak ' ,
1097+ description : 'Using \\n endings uses \\n newline ' ,
10981098 text : 'a,b\nc,d\ne,f\ng,h\ni,j' ,
10991099 config : { } ,
11001100 expected : {
11011101 data : [ [ 'a' , 'b' ] , [ 'c' , 'd' ] , [ 'e' , 'f' ] , [ 'g' , 'h' ] , [ 'i' , 'j' ] ] ,
11021102 errors : [ ] ,
11031103 meta : {
1104- linebreak : '\n' ,
1104+ newline : '\n' ,
11051105 delimiter : ',' ,
1106- cursor : 19 ,
1106+ charCount : 19 ,
11071107 aborted : false ,
11081108 renamedHeaders : null ,
11091109 } ,
11101110 } ,
11111111 } ,
11121112 {
1113- description : 'Using \\r\\n endings with \\r\\n in header field uses \\r\\n linebreak ' ,
1113+ description : 'Using \\r\\n endings with \\r\\n in header field uses \\r\\n newline ' ,
11141114 text : '"a\r\na",b\r\nc,d\r\ne,f\r\ng,h\r\ni,j' ,
11151115 config : { } ,
11161116 expected : {
11171117 data : [ [ 'a\r\na' , 'b' ] , [ 'c' , 'd' ] , [ 'e' , 'f' ] , [ 'g' , 'h' ] , [ 'i' , 'j' ] ] ,
11181118 errors : [ ] ,
11191119 meta : {
1120- linebreak : '\r\n' ,
1120+ newline : '\r\n' ,
11211121 delimiter : ',' ,
1122- cursor : 28 ,
1122+ charCount : 28 ,
11231123 aborted : false ,
11241124 renamedHeaders : null ,
11251125 } ,
11261126 } ,
11271127 } ,
11281128 {
1129- description : 'Using \\r\\n endings with \\n in header field uses \\r\\n linebreak ' ,
1129+ description : 'Using \\r\\n endings with \\n in header field uses \\r\\n newline ' ,
11301130 text : '"a\na",b\r\nc,d\r\ne,f\r\ng,h\r\ni,j' ,
11311131 config : { } ,
11321132 expected : {
11331133 data : [ [ 'a\na' , 'b' ] , [ 'c' , 'd' ] , [ 'e' , 'f' ] , [ 'g' , 'h' ] , [ 'i' , 'j' ] ] ,
11341134 errors : [ ] ,
11351135 meta : {
1136- linebreak : '\r\n' ,
1136+ newline : '\r\n' ,
11371137 delimiter : ',' ,
1138- cursor : 27 ,
1138+ charCount : 27 ,
11391139 aborted : false ,
11401140 renamedHeaders : null ,
11411141 } ,
11421142 } ,
11431143 } ,
11441144 {
1145- description : 'Using \\n endings with \\r\\n in header field uses \\n linebreak ' ,
1145+ description : 'Using \\n endings with \\r\\n in header field uses \\n newline ' ,
11461146 text : '"a\r\na",b\nc,d\ne,f\ng,h\ni,j' ,
11471147 config : { } ,
11481148 expected : {
11491149 data : [ [ 'a\r\na' , 'b' ] , [ 'c' , 'd' ] , [ 'e' , 'f' ] , [ 'g' , 'h' ] , [ 'i' , 'j' ] ] ,
11501150 errors : [ ] ,
11511151 meta : {
1152- linebreak : '\n' ,
1152+ newline : '\n' ,
11531153 delimiter : ',' ,
1154- cursor : 24 ,
1154+ charCount : 24 ,
11551155 aborted : false ,
11561156 renamedHeaders : null ,
11571157 } ,
@@ -1165,9 +1165,9 @@ export const PARSE_TESTS = [
11651165 data : [ [ 'a\na' , 'b' ] , [ 'c' , 'd' ] , [ 'e' , 'f' ] , [ 'g' , 'h' ] , [ 'i' , 'j' ] ] ,
11661166 errors : [ ] ,
11671167 meta : {
1168- linebreak : '\r\n' ,
1168+ newline : '\r\n' ,
11691169 delimiter : ',' ,
1170- cursor : 27 ,
1170+ charCount : 27 ,
11711171 aborted : false ,
11721172 renamedHeaders : null ,
11731173 } ,
@@ -1181,9 +1181,9 @@ export const PARSE_TESTS = [
11811181 data : [ [ 'a\na' , 'b' ] , [ 'c' , 'd' ] , [ 'e' , 'f' ] , [ 'g' , 'h' ] , [ 'i' , 'j' ] ] ,
11821182 errors : [ ] ,
11831183 meta : {
1184- linebreak : '\r\n' ,
1184+ newline : '\r\n' ,
11851185 delimiter : ',' ,
1186- cursor : 27 ,
1186+ charCount : 27 ,
11871187 aborted : false ,
11881188 renamedHeaders : null ,
11891189 } ,
0 commit comments