rotational-cipher: Added negative shift test cases
@@ -67,3 +67,15 @@ fn rotate_all_the_letters() {
cipher::rotate("The quick brown fox jumps over the lazy dog.", 13)
);
}
+
+#[test]
+#[ignore]
+fn rotate_m_negative_1() {
+ assert_eq!("l", cipher::rotate("m", -1));
+}
+
+#[test]
+#[ignore]
+fn rotate_letters_negative_26() {
+ assert_eq!("omg", cipher::rotate("omg", -26));
+}
