#![warn(missing_docs)]
#![deny(unsafe_code)]
pub mod application;
pub mod audio;
pub mod chemical;
pub mod font;
pub mod image;
pub mod message;
pub mod model;
pub mod multipart;
pub mod text;
pub mod video;
pub mod x_conference;
pub mod x_shader;
#[doc(hidden)]
pub mod all_types;
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_application_types() {
assert_eq!(application::JSON, "application/json");
assert_eq!(application::XML, "application/xml");
assert_eq!(application::PDF, "application/pdf");
}
#[test]
fn test_text_types() {
assert_eq!(text::PLAIN, "text/plain");
assert_eq!(text::HTML, "text/html");
assert_eq!(text::CSS, "text/css");
}
#[test]
fn test_image_types() {
assert_eq!(image::PNG, "image/png");
assert_eq!(image::JPEG, "image/jpeg");
assert_eq!(image::GIF, "image/gif");
}
#[test]
fn test_video_types() {
assert_eq!(video::MP4, "video/mp4");
assert_eq!(video::WEBM, "video/webm");
}
#[test]
fn test_audio_types() {
assert_eq!(audio::MPEG, "audio/mpeg");
assert_eq!(audio::WAV, "audio/wav");
}
}