aboutsummaryrefslogtreecommitdiff
path: root/tests/meta.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-05-18 02:21:29 +0000
committerFuwn <[email protected]>2022-05-18 02:21:29 +0000
commit0842b253f61d19c18a9f2d5d70ba69543df639f9 (patch)
tree7133c33b5f08dbb913875a333a66a278352fd67e /tests/meta.rs
parentci(tests): add convert tests (diff)
downloadgerm-0842b253f61d19c18a9f2d5d70ba69543df639f9.tar.xz
germ-0842b253f61d19c18a9f2d5d70ba69543df639f9.zip
feat(meta): add getters
Diffstat (limited to 'tests/meta.rs')
-rw-r--r--tests/meta.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/meta.rs b/tests/meta.rs
index 511b991..4233aab 100644
--- a/tests/meta.rs
+++ b/tests/meta.rs
@@ -23,7 +23,7 @@ mod test {
#[test]
fn meta_to_map_mime() {
assert_eq!(
- Meta::from_string("text/gemini; hi=2; hi2=string=2").mime,
+ Meta::from_string("text/gemini; hi=2; hi2=string=2").mime(),
"text/gemini",
);
}
@@ -32,7 +32,7 @@ mod test {
fn meta_to_map_with_parameters() {
assert_eq!(
Meta::from_string("text/gemini; hi=2; hi2=string=2")
- .parameters
+ .parameters()
.get("hi2"),
Some(&"string=2".to_string()),
);
@@ -42,7 +42,7 @@ mod test {
fn meta_to_map_length() {
assert_eq!(
Meta::from_string("text/gemini; hi=2; hi2=string=2")
- .parameters
+ .parameters()
.len(),
2,
);