100-days-of-rust/Week-09/Day-57_Magic-Sigil-Generator/day57/tests/examples.rs

30 lines
574 B
Rust

/*
sigilize("i am healthy") ➞ "MLTHY"
sigilize("I FOUND MY SOULMATE") ➞ "FNDYSLMT"
sigilize("I have a job I enjoy and it pays well") ➞ "HVBJNDTPYSWL"
*/
#[cfg(test)]
mod examples {
use day57::sigilize;
#[test]
fn example1() {
assert_eq!(sigilize("i am healthy"), "MLTHY");
}
#[test]
fn example2() {
assert_eq!(sigilize("I FOUND MY SOULMATE"), "FNDYSLMT");
}
#[test]
fn example3() {
assert_eq!(
sigilize("I have a job I enjoy and it pays well"),
"HVBJNDTPYSWL"
);
}
}