Skip to content

Commit 33381b6

Browse files
author
sn-chr
committed
Add assymetric test to string reverse (#330)
1 parent b556201 commit 33381b6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/string/reverse.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ mod tests {
1111
assert_eq!(reverse("racecar"), "racecar");
1212
}
1313

14+
#[test]
15+
fn test_assymetric() {
16+
assert_eq!(reverse("abcdef"), "fedcba")
17+
}
18+
1419
#[test]
1520
fn test_sentence() {
1621
assert_eq!(reverse("step on no pets"), "step on no pets");

0 commit comments

Comments
 (0)