media-io / xml-schema

Generate rust code (structures and enum) from XSD
MIT License
53 stars 29 forks source link

Testcase failure due to extra space in the expected result of assert_eq (Issue 14) #15

Closed ranraj closed 1 year ago

ranraj commented 3 years ago

All failures are due to a formatting issue during assert_eq. There is extra space in the expected String.

Fix: All the extra space can be removed by comparing test result using the comparison tool

Issue : https://github.com/media-io/xml-schema/issues/14

RCA : attribute.rs tests were failing

Actual struct

#[yaserde(prefix = "xs", attribute)]

Expected

r#"# [ yaserde ( attribute ) ] pub language : String ,"#

Commit : https://github.com/ranraj/xml-schema/commit/208ddd87a0786be11220d3faeedfe57681bd1040

ranraj commented 3 years ago

Build failed for rust version 1.40.0 and 1.41.0 due to the below issue in https://github.com/rust-lang/rust/issues/65721 for sub dependency tracing-core v0.1.18 under reqwest v0.10.10 dependency This is the latest tracing-core v0.1.18 version and this issue fixed in the 1.42.0 rust version

Hope we can mark this two version job can be added into expect to fail @MarcAntoine-Arnaud

MarcAntoine-Arnaud commented 1 year ago

Sorry, I have looked after I have pushed 4115bde0cce3ddd1b027f8678f92cb721985ba48.