mirror of https://github.com/Y2Z/monolith
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
2.4 KiB
Rust
59 lines
2.4 KiB
Rust
4 years ago
|
// ██████╗ █████╗ ███████╗███████╗██╗███╗ ██╗ ██████╗
|
||
|
// ██╔══██╗██╔══██╗██╔════╝██╔════╝██║████╗ ██║██╔════╝
|
||
|
// ██████╔╝███████║███████╗███████╗██║██╔██╗ ██║██║ ███╗
|
||
|
// ██╔═══╝ ██╔══██║╚════██║╚════██║██║██║╚██╗██║██║ ██║
|
||
|
// ██║ ██║ ██║███████║███████║██║██║ ╚████║╚██████╔╝
|
||
|
// ╚═╝ ╚═╝ ╚═╝╚══════╝╚══════╝╚═╝╚═╝ ╚═══╝ ╚═════╝
|
||
|
|
||
4 years ago
|
#[cfg(test)]
|
||
|
mod passing {
|
||
3 years ago
|
use monolith::html;
|
||
4 years ago
|
|
||
|
#[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"));
|
||
|
}
|
||
4 years ago
|
}
|
||
|
|
||
|
// ███████╗ █████╗ ██╗██╗ ██╗███╗ ██╗ ██████╗
|
||
|
// ██╔════╝██╔══██╗██║██║ ██║████╗ ██║██╔════╝
|
||
|
// █████╗ ███████║██║██║ ██║██╔██╗ ██║██║ ███╗
|
||
|
// ██╔══╝ ██╔══██║██║██║ ██║██║╚██╗██║██║ ██║
|
||
|
// ██║ ██║ ██║██║███████╗██║██║ ╚████║╚██████╔╝
|
||
|
// ╚═╝ ╚═╝ ╚═╝╚═╝╚══════╝╚═╝╚═╝ ╚═══╝ ╚═════╝
|
||
|
|
||
4 years ago
|
#[cfg(test)]
|
||
|
mod failing {
|
||
3 years ago
|
use monolith::html;
|
||
4 years ago
|
|
||
4 years ago
|
#[test]
|
||
|
fn mask_icon() {
|
||
|
assert!(!html::is_icon("mask-icon"));
|
||
|
}
|
||
|
|
||
|
#[test]
|
||
|
fn fluid_icon() {
|
||
|
assert!(!html::is_icon("fluid-icon"));
|
||
|
}
|
||
|
|
||
4 years ago
|
#[test]
|
||
|
fn stylesheet() {
|
||
|
assert!(!html::is_icon("stylesheet"));
|
||
|
}
|
||
4 years ago
|
|
||
4 years ago
|
#[test]
|
||
|
fn empty_string() {
|
||
|
assert!(!html::is_icon(""));
|
||
|
}
|
||
4 years ago
|
}
|