@@ -240,6 +240,7 @@ test.each([
240240test . each < { inp : string ; args : Parameters < string [ "startsWith" ] > } > ( [
241241 { inp : "hello test" , args : [ "" ] } ,
242242 { inp : "hello test" , args : [ "hello" ] } ,
243+ { inp : "HELLO test" , args : [ "hello" ] } ,
243244 { inp : "hello test" , args : [ "test" ] } ,
244245 { inp : "hello test" , args : [ "test" , 6 ] } ,
245246] ) ( "string.startsWith (%p)" , ( { inp, args } ) => {
@@ -249,12 +250,25 @@ test.each<{ inp: string; args: Parameters<string["startsWith"]> }>([
249250test . each < { inp : string ; args : Parameters < string [ "endsWith" ] > } > ( [
250251 { inp : "hello test" , args : [ "" ] } ,
251252 { inp : "hello test" , args : [ "test" ] } ,
253+ { inp : "hello TEST" , args : [ "test" ] } ,
252254 { inp : "hello test" , args : [ "hello" ] } ,
253255 { inp : "hello test" , args : [ "hello" , 5 ] } ,
254256] ) ( "string.endsWith (%p)" , ( { inp, args } ) => {
255257 util . testExpression `"${ inp } ".endsWith(${ util . formatCode ( ...args ) } )` . expectToMatchJsResult ( ) ;
256258} ) ;
257259
260+ test . each < { inp : string ; args : Parameters < string [ "includes" ] > } > ( [
261+ { inp : "hello test" , args : [ "" ] } ,
262+ { inp : "hello test" , args : [ "test" ] } ,
263+ { inp : "HELLO TEST" , args : [ "test" ] } ,
264+ { inp : "hello test" , args : [ "hello" ] } ,
265+ { inp : "HELLO TEST" , args : [ "hello" ] } ,
266+ { inp : "hello test" , args : [ "hello" , 5 ] } ,
267+ { inp : "hello test" , args : [ "test" , 6 ] } ,
268+ ] ) ( "string.includes (%p)" , ( { inp, args } ) => {
269+ util . testExpression `"${ inp } ".includes(${ util . formatCode ( ...args ) } )` . expectToMatchJsResult ( ) ;
270+ } ) ;
271+
258272test . each ( [
259273 { inp : "hello test" , count : 0 } ,
260274 { inp : "hello test" , count : 1 } ,
0 commit comments