File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -1569,7 +1569,28 @@ mod test {
1569
1569
) ) ) ,
1570
1570
r#""string with \\ escape and \" quote""# ,
1571
1571
) ,
1572
- // TODO: Tests for `Block` string.
1572
+ (
1573
+ Token :: Scalar ( ScalarToken :: String ( Block (
1574
+ r#""""string with \\ escape and \" quote""""# ,
1575
+ ) ) ) ,
1576
+ r#""""string with \\ escape and \" quote""""# ,
1577
+ ) ,
1578
+ (
1579
+ Token :: Scalar ( ScalarToken :: String ( Block (
1580
+ r#""""block string with \\ escape and \" quote""""# ,
1581
+ ) ) ) ,
1582
+ r#""""block string with \\ escape and \" quote""""# ,
1583
+ ) ,
1584
+ (
1585
+ Token :: Scalar ( ScalarToken :: String ( Block (
1586
+ r#""""block
1587
+ multiline
1588
+ string"""# ,
1589
+ ) ) ) ,
1590
+ r#""""block
1591
+ multiline
1592
+ string"""# ,
1593
+ ) ,
1573
1594
( Token :: ExclamationMark , "!" ) ,
1574
1595
( Token :: Dollar , "$" ) ,
1575
1596
( Token :: ParenOpen , "(" ) ,
You can’t perform that action at this time.
0 commit comments