RReverser / serde-xml-rs

xml-rs based deserializer for Serde (compatible with 1.0+)
https://crates.io/crates/serde-xml-rs
MIT License
270 stars 90 forks source link

Some tests fails due to activate triming #29

Open farodin91 opened 7 years ago

farodin91 commented 7 years ago

for example: test_option

oli-obk commented 7 years ago

can you elaborate? Maybe post the error output. Is it spurious and only happens sometimes?

farodin91 commented 7 years ago

This test test_parse_ok(&[("<a> </a>", Some(" ".to_string()))]); will fail until trim_whitespace is false.

oli-obk commented 7 years ago

Oh. I think it's fine to simply replace the output with Some("".to_string()) (so fixing the test, not the code)