Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop Pascalizing Enum Cases #162

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Updated union tests after pascalize change
  • Loading branch information
lkirkwood committed Apr 20, 2024
commit 93d699cdc0be956845392a66eb2f36d4f49d3735
4 changes: 2 additions & 2 deletions xsd-parser/tests/union/expected.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#[derive(PartialEq, Debug, UtilsUnionSerDe)]
pub enum FooType {
Int(i32),
String(String),
int(i32),
string(String),
__Unknown__(String),
}

Expand Down
2 changes: 1 addition & 1 deletion xsd-parser/tests/union/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fn deserialization_works() {

let de: expected::FooType = yaserde::de::from_str(ser).unwrap();

assert_eq!(de, expected::FooType::String("string".to_string()));
assert_eq!(de, expected::FooType::string("string".to_string()));
}

#[test]
Expand Down