@@ -2074,36 +2074,13 @@ fn main() {
2074
2074
expected_line_start : & str ,
2075
2075
) {
2076
2076
let block = ItemizedBlock :: new ( test_input) . unwrap ( ) ;
2077
- <<<<<<< HEAD
2078
- assert_eq ! ( 1 , block. lines. len( ) , "test_input: {:?}" , test_input) ;
2079
- assert_eq ! (
2080
- expected_line, & block. lines[ 0 ] ,
2081
- "test_input: {:?}" ,
2082
- test_input
2083
- ) ;
2084
- assert_eq ! (
2085
- expected_indent, block. indent,
2086
- "test_input: {:?}" ,
2087
- test_input
2088
- ) ;
2089
- assert_eq ! (
2090
- expected_opener, & block. opener,
2091
- "test_input: {:?}" ,
2092
- test_input
2093
- ) ;
2094
- assert_eq!(
2095
- expected_line_start, & block. line_start,
2096
- "test_input: {:?}" ,
2097
- test_input
2098
- =======
2099
2077
assert_eq ! ( 1 , block. lines. len( ) , "test_input: {test_input:?}" ) ;
2100
2078
assert_eq ! ( expected_line, & block. lines[ 0 ] , "test_input: {test_input:?}" ) ;
2101
2079
assert_eq ! ( expected_indent, block. indent, "test_input: {test_input:?}" ) ;
2102
2080
assert_eq ! ( expected_opener, & block. opener, "test_input: {test_input:?}" ) ;
2103
2081
assert_eq ! (
2104
2082
expected_line_start, & block. line_start,
2105
2083
"test_input: {test_input:?}"
2106
- >>>>>>> upstream/master
2107
2084
) ;
2108
2085
}
2109
2086
@@ -2155,23 +2132,15 @@ fn main() {
2155
2132
// https://spec.commonmark.org/0.30 says: "A start number may not be negative":
2156
2133
"-1. Not a list item." ,
2157
2134
"-1 Not a list item." ,
2158
- <<<<<<< HEAD
2159
- =======
2160
2135
// Marker without prefix are not recognized as item markers:
2161
2136
". Not a list item." ,
2162
2137
") Not a list item." ,
2163
- >>>>>>> upstream/master
2164
2138
] ;
2165
2139
for line in test_inputs. iter ( ) {
2166
2140
let maybe_block = ItemizedBlock :: new ( line) ;
2167
2141
assert ! (
2168
2142
maybe_block. is_none( ) ,
2169
- <<<<<<< HEAD
2170
- "The following line shouldn't be classified as a list item: {}" ,
2171
- line
2172
- =======
2173
2143
"The following line shouldn't be classified as a list item: {line}"
2174
- >>>>>>> upstream/master
2175
2144
) ;
2176
2145
}
2177
2146
}
0 commit comments