aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-06-10 02:41:24 +0000
committerFuwn <[email protected]>2022-06-10 02:41:24 +0000
commitb9b18296fcb2821e5333cd95f12b685cbdbc4bd8 (patch)
tree37276d8b35775a3023955ddbf8f68e98b98418da
parentdocs(cargo): expose all features by default (diff)
downloadgerm-b9b18296fcb2821e5333cd95f12b685cbdbc4bd8.tar.xz
germ-b9b18296fcb2821e5333cd95f12b685cbdbc4bd8.zip
test(meta): add no params test
-rw-r--r--tests/meta.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/meta.rs b/tests/meta.rs
index 4233aab..5690850 100644
--- a/tests/meta.rs
+++ b/tests/meta.rs
@@ -21,6 +21,14 @@ mod test {
use germ::meta::Meta;
#[test]
+ fn meta_to_mime_without_parameters() {
+ let meta = Meta::from_string("text/gemini");
+
+ assert_eq!(meta.mime(), "text/gemini");
+ assert_eq!(meta.parameters().len(), 0);
+ }
+
+ #[test]
fn meta_to_map_mime() {
assert_eq!(
Meta::from_string("text/gemini; hi=2; hi2=string=2").mime(),