@@ -286,13 +286,13 @@ exports.checkRep = (cs) => {
286286 break ;
287287 case '-' :
288288 oldPos += o . chars ;
289- exports . assert ( oldPos <= oldLen , oldPos , ' > ' , oldLen , ' in ' , cs ) ;
289+ exports . assert ( oldPos <= oldLen , ` ${ oldPos } > ${ oldLen } in ${ cs } ` ) ;
290290 break ;
291291 case '+' :
292292 {
293293 calcNewLen += o . chars ;
294294 numInserted += o . chars ;
295- exports . assert ( calcNewLen <= newLen , calcNewLen , ' > ' , newLen , ' in ' , cs ) ;
295+ exports . assert ( calcNewLen <= newLen , ` ${ calcNewLen } > ${ newLen } in ${ cs } ` ) ;
296296 break ;
297297 }
298298 }
@@ -533,7 +533,7 @@ exports.stringIterator = (str) => {
533533 const getnewLines = ( ) => newLines ;
534534
535535 const assertRemaining = ( n ) => {
536- exports . assert ( n <= remaining ( ) , '!(' , n , ' <= ' , remaining ( ) , ')' ) ;
536+ exports . assert ( n <= remaining ( ) , `!( ${ n } <= ${ remaining ( ) } )` ) ;
537537 } ;
538538
539539 const take = ( n ) => {
@@ -1057,8 +1057,8 @@ exports.pack = (oldLen, newLen, opsStr, bank) => {
10571057 */
10581058exports . applyToText = ( cs , str ) => {
10591059 const unpacked = exports . unpack ( cs ) ;
1060- exports . assert ( str . length === unpacked . oldLen , ' mismatched apply: ' , str . length ,
1061- ' / ' , unpacked . oldLen ) ;
1060+ exports . assert ( str . length === unpacked . oldLen , ` mismatched apply: ${ str . length }
1061+ / ${ unpacked . oldLen } ` ) ;
10621062 const csIter = exports . opIterator ( unpacked . ops ) ;
10631063 const bankIter = exports . stringIterator ( unpacked . charBank ) ;
10641064 const strIter = exports . stringIterator ( str ) ;
0 commit comments