File tree 1 file changed +1
-17
lines changed
1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -1571,16 +1571,6 @@ mod test {
1571
1571
use crate :: reader:: Reader ;
1572
1572
use pretty_assertions:: assert_eq;
1573
1573
1574
- #[ $test]
1575
- $( $async) ? fn text_at_start( ) {
1576
- let mut reader = Reader :: from_str( "text" ) ;
1577
-
1578
- assert_eq!(
1579
- reader. $read_event( $buf) $( . $await) ? . unwrap( ) ,
1580
- Event :: Text ( BytesText :: from_escaped( "text" ) . into( ) )
1581
- ) ;
1582
- }
1583
-
1584
1574
#[ $test]
1585
1575
#[ should_panic] // Failure is expected until read_until_open() is smart enough to skip over irrelevant text events.
1586
1576
$( $async) ? fn bom_at_start( ) {
@@ -1655,15 +1645,9 @@ mod test {
1655
1645
) ;
1656
1646
}
1657
1647
1658
- /// Text event cannot be generated without preceding event of another type
1659
1648
#[ $test]
1660
1649
$( $async) ? fn text( ) {
1661
- let mut reader = Reader :: from_str( "<tag/>text" ) ;
1662
-
1663
- assert_eq!(
1664
- reader. $read_event( $buf) $( . $await) ? . unwrap( ) ,
1665
- Event :: Empty ( BytesStart :: new( "tag" ) )
1666
- ) ;
1650
+ let mut reader = Reader :: from_str( "text" ) ;
1667
1651
1668
1652
assert_eq!(
1669
1653
reader. $read_event( $buf) $( . $await) ? . unwrap( ) ,
You can’t perform that action at this time.
0 commit comments