File tree 3 files changed +7
-16
lines changed
3 files changed +7
-16
lines changed Original file line number Diff line number Diff line change 1
1
# Unit tests assume that all xml files have unix style line endings
2
- * .xml text eol =cr
2
+ /tests /documents /* text eol =lf
3
+
4
+ /tests /documents /utf16be.xml binary
5
+ /tests /documents /utf16le.xml binary
6
+ /tests /documents /sample_5_utf16bom.xml binary
Original file line number Diff line number Diff line change 190
190
- [ #407 ] : Improved benchmark suite to cover whole-document parsing, escaping and unescaping text
191
191
- [ #418 ] : Parameterized macrobenchmarks and comparative benchmarks, added throughput measurements via criterion
192
192
- [ #434 ] : Added more tests for serde deserializer
193
+ - [ #443 ] : Now all documents in ` /tests/documents ` are checked out with LF eol in working copy (except sample_5_utf16bom.xml)
193
194
194
195
[ #8 ] : https://github.com/Mingun/fast-xml/pull/8
195
196
[ #9 ] : https://github.com/Mingun/fast-xml/pull/9
216
217
[ #437 ] : https://github.com/tafia/quick-xml/pull/437
217
218
[ #439 ] : https://github.com/tafia/quick-xml/pull/439
218
219
[ #440 ] : https://github.com/tafia/quick-xml/pull/440
220
+ [ #443 ] : https://github.com/tafia/quick-xml/pull/443
219
221
220
222
221
223
## 0.23.0 -- 2022-05-08
Original file line number Diff line number Diff line change @@ -235,10 +235,6 @@ fn test_writer_borrow() -> Result<()> {
235
235
#[ test]
236
236
fn test_writer_indent ( ) -> Result < ( ) > {
237
237
let txt = include_str ! ( "../tests/documents/test_writer_indent.xml" ) ;
238
- // Normalize newlines on Windows to just \n, which is what the reader and
239
- // writer use.
240
- let normalized_txt = txt. replace ( "\r \n " , "\n " ) ;
241
- let txt = normalized_txt. as_str ( ) ;
242
238
let mut reader = Reader :: from_str ( txt) ;
243
239
reader. trim_text ( true ) ;
244
240
let mut writer = Writer :: new_with_indent ( Cursor :: new ( Vec :: new ( ) ) , b' ' , 4 ) ;
@@ -250,12 +246,6 @@ fn test_writer_indent() -> Result<()> {
250
246
}
251
247
252
248
let result = writer. into_inner ( ) . into_inner ( ) ;
253
- // println!("{:?}", String::from_utf8_lossy(&result));
254
-
255
- #[ cfg( windows) ]
256
- assert ! ( result. into_iter( ) . eq( txt. bytes( ) . filter( |b| * b != 13 ) ) ) ;
257
-
258
- #[ cfg( not( windows) ) ]
259
249
assert_eq ! ( result, txt. as_bytes( ) ) ;
260
250
261
251
Ok ( ( ) )
@@ -275,11 +265,6 @@ fn test_writer_indent_cdata() -> Result<()> {
275
265
}
276
266
277
267
let result = writer. into_inner ( ) . into_inner ( ) ;
278
-
279
- #[ cfg( windows) ]
280
- assert ! ( result. into_iter( ) . eq( txt. bytes( ) . filter( |b| * b != 13 ) ) ) ;
281
-
282
- #[ cfg( not( windows) ) ]
283
268
assert_eq ! ( result, txt. as_bytes( ) ) ;
284
269
285
270
Ok ( ( ) )
You can’t perform that action at this time.
0 commit comments