2020-06-28 22:15:42 +02:00
|
|
|
// ██████╗ █████╗ ███████╗███████╗██╗███╗ ██╗ ██████╗
|
|
|
|
// ██╔══██╗██╔══██╗██╔════╝██╔════╝██║████╗ ██║██╔════╝
|
|
|
|
// ██████╔╝███████║███████╗███████╗██║██╔██╗ ██║██║ ███╗
|
|
|
|
// ██╔═══╝ ██╔══██║╚════██║╚════██║██║██║╚██╗██║██║ ██║
|
|
|
|
// ██║ ██║ ██║███████║███████║██║██║ ╚████║╚██████╔╝
|
|
|
|
// ╚═╝ ╚═╝ ╚═╝╚══════╝╚══════╝╚═╝╚═╝ ╚═══╝ ╚═════╝
|
|
|
|
|
|
|
|
#[cfg(test)]
|
|
|
|
mod passing {
|
2021-10-17 09:16:37 +02:00
|
|
|
use monolith::utils;
|
2020-06-28 22:15:42 +02:00
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn zero() {
|
|
|
|
assert_eq!(utils::indent(0), "");
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn one() {
|
|
|
|
assert_eq!(utils::indent(1), " ");
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn two() {
|
|
|
|
assert_eq!(utils::indent(2), " ");
|
|
|
|
}
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn three() {
|
|
|
|
assert_eq!(utils::indent(3), " ");
|
|
|
|
}
|
2021-06-08 14:30:15 +02:00
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn four() {
|
|
|
|
assert_eq!(utils::indent(4), " ");
|
|
|
|
}
|
2020-06-28 22:15:42 +02:00
|
|
|
}
|