diff options
| author | Fuwn <[email protected]> | 2022-05-18 02:21:29 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-05-18 02:21:29 +0000 |
| commit | 0842b253f61d19c18a9f2d5d70ba69543df639f9 (patch) | |
| tree | 7133c33b5f08dbb913875a333a66a278352fd67e /tests/meta.rs | |
| parent | ci(tests): add convert tests (diff) | |
| download | germ-0842b253f61d19c18a9f2d5d70ba69543df639f9.tar.xz germ-0842b253f61d19c18a9f2d5d70ba69543df639f9.zip | |
feat(meta): add getters
Diffstat (limited to 'tests/meta.rs')
| -rw-r--r-- | tests/meta.rs | 6 |
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, ); |