2020-03-23 03:08:41 +01:00
|
|
|
// ██████╗ █████╗ ███████╗███████╗██╗███╗ ██╗ ██████╗
|
|
|
|
// ██╔══██╗██╔══██╗██╔════╝██╔════╝██║████╗ ██║██╔════╝
|
|
|
|
// ██████╔╝███████║███████╗███████╗██║██╔██╗ ██║██║ ███╗
|
|
|
|
// ██╔═══╝ ██╔══██║╚════██║╚════██║██║██║╚██╗██║██║ ██║
|
|
|
|
// ██║ ██║ ██║███████║███████║██║██║ ╚████║╚██████╔╝
|
|
|
|
// ╚═╝ ╚═╝ ╚═╝╚══════╝╚══════╝╚═╝╚═╝ ╚═══╝ ╚═════╝
|
|
|
|
|
2020-05-23 09:49:04 +02:00
|
|
|
#[cfg(test)]
|
|
|
|
mod passing {
|
2021-10-17 09:16:37 +02:00
|
|
|
use monolith::html;
|
2020-05-23 09:49:04 +02:00
|
|
|
|
|
|
|
#[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"));
|
|
|
|
}
|
2020-03-23 03:08:41 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// ███████╗ █████╗ ██╗██╗ ██╗███╗ ██╗ ██████╗
|
|
|
|
// ██╔════╝██╔══██╗██║██║ ██║████╗ ██║██╔════╝
|
|
|
|
// █████╗ ███████║██║██║ ██║██╔██╗ ██║██║ ███╗
|
|
|
|
// ██╔══╝ ██╔══██║██║██║ ██║██║╚██╗██║██║ ██║
|
|
|
|
// ██║ ██║ ██║██║███████╗██║██║ ╚████║╚██████╔╝
|
|
|
|
// ╚═╝ ╚═╝ ╚═╝╚═╝╚══════╝╚═╝╚═╝ ╚═══╝ ╚═════╝
|
|
|
|
|
2020-05-23 09:49:04 +02:00
|
|
|
#[cfg(test)]
|
|
|
|
mod failing {
|
2021-10-17 09:16:37 +02:00
|
|
|
use monolith::html;
|
2020-05-23 09:49:04 +02:00
|
|
|
|
2020-07-14 08:58:29 +02:00
|
|
|
#[test]
|
|
|
|
fn mask_icon() {
|
|
|
|
assert!(!html::is_icon("mask-icon"));
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn fluid_icon() {
|
|
|
|
assert!(!html::is_icon("fluid-icon"));
|
|
|
|
}
|
|
|
|
|
2020-05-23 09:49:04 +02:00
|
|
|
#[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
|
|
|
}
|