diff --git a/instant-xml/tests/de-ns.rs b/instant-xml/tests/de-ns.rs
index d0e931b..2caec63 100644
--- a/instant-xml/tests/de-ns.rs
+++ b/instant-xml/tests/de-ns.rs
@@ -10,7 +10,7 @@ struct NestedWrongNamespace {
#[derive(Debug, Eq, PartialEq, FromXml)]
#[xml(ns("URI", bar = "BAZ"))]
struct NestedDe {
- #[xml(ns(bar))]
+ #[xml(ns("BAZ"))]
flag: bool,
}
@@ -78,7 +78,7 @@ fn default_namespaces() {
#[derive(Debug, Eq, PartialEq, FromXml)]
#[xml(ns("URI", bar = "BAZ"))]
struct NestedOtherNamespace {
- #[xml(ns(bar))]
+ #[xml(ns("BAZ"))]
flag: bool,
}
diff --git a/instant-xml/tests/ser-child-ns.rs b/instant-xml/tests/ser-child-ns.rs
index 7948d19..8e83398 100644
--- a/instant-xml/tests/ser-child-ns.rs
+++ b/instant-xml/tests/ser-child-ns.rs
@@ -5,8 +5,6 @@ use instant_xml::{to_string, ToXml};
#[derive(Debug, Eq, PartialEq, ToXml)]
#[xml(ns(dar = "BAZ", internal = "INTERNAL"))]
struct NestedDifferentNamespace {
- #[xml(ns(dar))]
- flag_parent_prefix: bool,
#[xml(ns(internal))]
flag_internal_prefix: bool,
}
@@ -35,7 +33,6 @@ fn struct_child_namespaces() {
assert_eq!(
to_string(&StructChildNamespaces {
different_child_namespace: NestedDifferentNamespace {
- flag_parent_prefix: true,
flag_internal_prefix: false,
},
same_child_namespace: Nested {
@@ -44,6 +41,6 @@ fn struct_child_namespaces() {
},
})
.unwrap(),
- "truefalsetruefalse"
+ "falsetruefalse"
);
}
diff --git a/instant-xml/tests/ser-named.rs b/instant-xml/tests/ser-named.rs
index f8083de..cd25283 100644
--- a/instant-xml/tests/ser-named.rs
+++ b/instant-xml/tests/ser-named.rs
@@ -6,7 +6,7 @@ use instant_xml::{to_string, ToXml};
#[xml(ns(bar = "BAZ", foo = "BAR"))]
struct StructWithNamedFields {
flag: bool,
- #[xml(ns(bar))]
+ #[xml(ns("BAZ"))]
string: String,
#[xml(ns("typo"))]
number: i32,
diff --git a/instant-xml/tests/ser-nested.rs b/instant-xml/tests/ser-nested.rs
index 415d84b..bd8ae56 100644
--- a/instant-xml/tests/ser-nested.rs
+++ b/instant-xml/tests/ser-nested.rs
@@ -5,8 +5,6 @@ use instant_xml::{to_string, ToXml};
#[derive(Debug, Eq, PartialEq, ToXml)]
#[xml(ns("URI", dar = "BAZ", internal = "INTERNAL"))]
struct Nested {
- #[xml(ns(dar))]
- flag_parent_prefix: bool,
#[xml(ns(internal))]
flag_internal_prefix: bool,
}
@@ -18,8 +16,6 @@ struct StructWithCustomField {
int_attribute: i32,
#[xml(ns("BAZ"))]
flag_direct_namespace_same_the_same_as_prefix: bool,
- #[xml(ns(bar))]
- flag_prefix: bool,
#[xml(ns("DIFFERENT"))]
flag_direct_namespace: bool,
test: Nested,
@@ -40,14 +36,12 @@ fn struct_with_custom_field() {
to_string(&StructWithCustomField {
int_attribute: 42,
flag_direct_namespace_same_the_same_as_prefix: true,
- flag_prefix: false,
flag_direct_namespace: true,
test: Nested {
- flag_parent_prefix: true,
flag_internal_prefix: false,
},
})
.unwrap(),
- "truefalsetruetruefalse"
+ "truetruefalse"
);
}