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 @@ -1579,16 +1579,6 @@ mod test {
1579
1579
use crate :: reader:: Reader ;
1580
1580
use pretty_assertions:: assert_eq;
1581
1581
1582
- #[ $test]
1583
- $( $async) ? fn text_at_start( ) {
1584
- let mut reader = Reader :: from_str( "text" ) ;
1585
-
1586
- assert_eq!(
1587
- reader. $read_event( $buf) $( . $await) ? . unwrap( ) ,
1588
- Event :: Text ( BytesText :: from_escaped( "text" ) . into( ) )
1589
- ) ;
1590
- }
1591
-
1592
1582
#[ $test]
1593
1583
#[ should_panic] // Failure is expected until read_until_open() is smart enough to skip over irrelevant text events.
1594
1584
$( $async) ? fn bom_at_start( ) {
@@ -1663,15 +1653,9 @@ mod test {
1663
1653
) ;
1664
1654
}
1665
1655
1666
- /// Text event cannot be generated without preceding event of another type
1667
1656
#[ $test]
1668
1657
$( $async) ? fn text( ) {
1669
- let mut reader = Reader :: from_str( "<tag/>text" ) ;
1670
-
1671
- assert_eq!(
1672
- reader. $read_event( $buf) $( . $await) ? . unwrap( ) ,
1673
- Event :: Empty ( BytesStart :: new( "tag" ) )
1674
- ) ;
1658
+ let mut reader = Reader :: from_str( "text" ) ;
1675
1659
1676
1660
assert_eq!(
1677
1661
reader. $read_event( $buf) $( . $await) ? . unwrap( ) ,
You can’t perform that action at this time.
0 commit comments