extern crate rotational_cipher as cipher;

#[test]
fn rotate_a_1() {
    assert_eq!("b", cipher::rotate("a", 1));
}

#[test]
#[ignore]
fn rotate_a_26() {
    assert_eq!("a", cipher::rotate("a", 26));
}

#[test]
#[ignore]
fn rotate_a_0() {
    assert_eq!("a", cipher::rotate("a", 0));
}

#[test]
#[ignore]
fn rotate_m_13() {
    assert_eq!("z", cipher::rotate("m", 13));
}

#[test]
#[ignore]
fn rotate_n_13_with_wrap() 


#[test]
#[ignore]
fn rotate_caps() {
    assert_eq!("TRL", cipher::rotate("OMG", 5));
}

#[test]
#[ignore]
fn rotate_spaces() {
    assert_eq!("T R L", cipher::rotate("O M G", 5));
}

#[test]
#[ignore]
fn rotate_numbers() {
    assert_eq!("Xiwxmrk 1 2 3 xiwxmrk", cipher::rotate("Testing 1 2 3 testing", 4));
}

#[test]
#[ignore]
fn rotate_punctuation() {
    assert_eq!("Gzo\'n zvo, Bmviyhv!", cipher::rotate("Let\'s eat, Grandma!", 21));
}

#[test]
#[ignore]
fn rotate_all_the_letters() {
    assert_eq!("Gur dhvpx oebja sbk whzcf bire gur ynml qbt.",
        cipher::rotate("The quick brown fox jumps over the lazy dog.", 13));
}

{
    assert_eq!("a", cipher::rotate("n", 13));
}