2020-03-23 03:08:41 +01:00
|
|
|
// ██████╗ █████╗ ███████╗███████╗██╗███╗ ██╗ ██████╗
|
|
|
|
// ██╔══██╗██╔══██╗██╔════╝██╔════╝██║████╗ ██║██╔════╝
|
|
|
|
// ██████╔╝███████║███████╗███████╗██║██╔██╗ ██║██║ ███╗
|
|
|
|
// ██╔═══╝ ██╔══██║╚════██║╚════██║██║██║╚██╗██║██║ ██║
|
|
|
|
// ██║ ██║ ██║███████║███████║██║██║ ╚████║╚██████╔╝
|
|
|
|
// ╚═╝ ╚═╝ ╚═╝╚══════╝╚══════╝╚═╝╚═╝ ╚═══╝ ╚═════╝
|
|
|
|
|
2020-05-23 09:49:04 +02:00
|
|
|
#[cfg(test)]
|
|
|
|
mod passing {
|
|
|
|
use crate::html;
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn icon() {
|
|
|
|
assert!(html::is_icon("icon"));
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn shortcut_icon_capitalized() {
|
|
|
|
assert!(html::is_icon("Shortcut Icon"));
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn icon_uppercase() {
|
|
|
|
assert!(html::is_icon("ICON"));
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn mask_icon() {
|
|
|
|
assert!(html::is_icon("mask-icon"));
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn fluid_icon() {
|
|
|
|
assert!(html::is_icon("fluid-icon"));
|
|
|
|
}
|
2020-03-23 03:08:41 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// ███████╗ █████╗ ██╗██╗ ██╗███╗ ██╗ ██████╗
|
|
|
|
// ██╔════╝██╔══██╗██║██║ ██║████╗ ██║██╔════╝
|
|
|
|
// █████╗ ███████║██║██║ ██║██╔██╗ ██║██║ ███╗
|
|
|
|
// ██╔══╝ ██╔══██║██║██║ ██║██║╚██╗██║██║ ██║
|
|
|
|
// ██║ ██║ ██║██║███████╗██║██║ ╚████║╚██████╔╝
|
|
|
|
// ╚═╝ ╚═╝ ╚═╝╚═╝╚══════╝╚═╝╚═╝ ╚═══╝ ╚═════╝
|
|
|
|
|
2020-05-23 09:49:04 +02:00
|
|
|
#[cfg(test)]
|
|
|
|
mod failing {
|
|
|
|
use crate::html;
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn stylesheet() {
|
|
|
|
assert!(!html::is_icon("stylesheet"));
|
|
|
|
}
|
2020-03-23 03:08:41 +01:00
|
|
|
|
2020-05-23 09:49:04 +02:00
|
|
|
#[test]
|
|
|
|
fn empty_string() {
|
|
|
|
assert!(!html::is_icon(""));
|
|
|
|
}
|
2020-03-23 03:08:41 +01:00
|
|
|
}
|