@@ -63,13 +63,13 @@ const validInput = `{% comment %}
6363// rightmostFailurePosition is the same as the JS parser reports.
6464function arbitraryEdit ( input ) {
6565 return fc
66- . tuple (
67- fc . nat ( { max : input . length - 1 } ) , // Position to edit
68- fc . integer ( { min : 1 , max : 20 } ) // Number of characters to delete
69- )
70- . map ( ( [ pos , numDeleted ] ) => {
71- return input . slice ( 0 , pos ) + input . slice ( pos + numDeleted ) ;
72- } ) ;
66+ . tuple (
67+ fc . nat ( { max : input . length - 1 } ) , // Position to edit
68+ fc . integer ( { min : 1 , max : 20 } ) , // Number of characters to delete
69+ )
70+ . map ( ( [ pos , numDeleted ] ) => {
71+ return input . slice ( 0 , pos ) + input . slice ( pos + numDeleted ) ;
72+ } ) ;
7373}
7474
7575// A fast-check property that checks that:
@@ -81,8 +81,8 @@ const sameFailurePos = (t, wasmMatcher) =>
8181 wasmMatcher . setInput ( input ) ;
8282 fc . pre ( wasmMatcher . match ( ) === 0 ) ;
8383 assert . equal (
84- ns . LiquidHTML . match ( input ) . getRightmostFailurePosition ( ) ,
85- wasmMatcher . getRightmostFailurePosition ( )
84+ ns . LiquidHTML . match ( input ) . getRightmostFailurePosition ( ) ,
85+ wasmMatcher . getRightmostFailurePosition ( ) ,
8686 ) ;
8787 } ) ;
8888
0 commit comments