100-days-of-rust/Week-02/Day-14_Karacas-Encryption-Algorithm/day14/tests/examples.rs

22 lines
318 B
Rust

use day14::encrypt;
#[test]
fn example1() {
assert_eq!(encrypt("banana"), "0n0n0baca");
}
#[test]
fn example2() {
assert_eq!(encrypt("karaca"), "0c0r0kaca");
}
#[test]
fn example3() {
assert_eq!(encrypt("burak"), "k0r3baca");
}
#[test]
fn example4() {
assert_eq!(encrypt("alpaca"), "0c0pl0aca");
}