diff --git a/xsd-parser/tests/mod.rs b/xsd-parser/tests/mod.rs index ba4a1fa7..bead4221 100644 --- a/xsd-parser/tests/mod.rs +++ b/xsd-parser/tests/mod.rs @@ -14,7 +14,6 @@ mod rename_only_where_needed; mod restriction_any_type; mod simple_type; mod tuple_with_integer; -mod tuple_with_string; mod tuple_with_vec_int; mod tuple_with_vec_string; mod type_name_clash; diff --git a/xsd-parser/tests/tuple_with_string/example.xml b/xsd-parser/tests/tuple_with_string/example.xml deleted file mode 100644 index d8fb5a0b..00000000 --- a/xsd-parser/tests/tuple_with_string/example.xml +++ /dev/null @@ -1 +0,0 @@ -abc diff --git a/xsd-parser/tests/tuple_with_string/example_empty.xml b/xsd-parser/tests/tuple_with_string/example_empty.xml deleted file mode 100644 index 9a9174d3..00000000 --- a/xsd-parser/tests/tuple_with_string/example_empty.xml +++ /dev/null @@ -1 +0,0 @@ - diff --git a/xsd-parser/tests/tuple_with_string/expected.rs b/xsd-parser/tests/tuple_with_string/expected.rs deleted file mode 100644 index ef82ccf1..00000000 --- a/xsd-parser/tests/tuple_with_string/expected.rs +++ /dev/null @@ -1,2 +0,0 @@ -#[derive(Default, PartialEq, Debug, UtilsTupleIo, UtilsDefaultSerde)] -pub struct FooType(pub String); diff --git a/xsd-parser/tests/tuple_with_string/input.xsd b/xsd-parser/tests/tuple_with_string/input.xsd deleted file mode 100644 index 1bbb4046..00000000 --- a/xsd-parser/tests/tuple_with_string/input.xsd +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - diff --git a/xsd-parser/tests/tuple_with_string/mod.rs b/xsd-parser/tests/tuple_with_string/mod.rs deleted file mode 100644 index ef829ba2..00000000 --- a/xsd-parser/tests/tuple_with_string/mod.rs +++ /dev/null @@ -1,40 +0,0 @@ -use super::utils; - -#[test] -fn deserialization_works() { - mod expected { - use std::str::FromStr; - - use xsd_macro_utils::*; - - include!("expected.rs"); - } - - { - let ser = include_str!("example.xml"); - - let de: expected::FooType = yaserde::de::from_str(ser).unwrap(); - - assert_eq!(de, expected::FooType("abc".to_string())); - } - - { - // Empty element should be deserialized into an empty string - let ser = include_str!("example_empty.xml"); - - let de: expected::FooType = yaserde::de::from_str(ser).unwrap(); - - assert_eq!(de, expected::FooType("".to_string())); - } -} - -#[test] -fn generator_does_not_panic() { - println!("{}", utils::generate(include_str!("input.xsd"))) -} - -#[test] -#[ignore] // Validation is not needed in this case -fn generator_output_has_correct_ast() { - utils::ast_test(include_str!("input.xsd"), include_str!("expected.rs")); -}