Skip to content

Commit 4147af7

Browse files
author
oulaindex
committed
test: add more test cases for Manacher algorithm
1 parent 2bbcf55 commit 4147af7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/string/manacher.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ mod tests {
6666
assert_eq!(manacher("babad".to_string()), "aba".to_string());
6767
assert_eq!(manacher("cbbd".to_string()), "bb".to_string());
6868
assert_eq!(manacher("a".to_string()), "a".to_string());
69-
69+
assert_eq!(manacher("abcba".to_string()), "abcba".to_string());
7070
let ac_ans = manacher("ac".to_string());
7171
assert!(ac_ans == *"a" || ac_ans == *"c");
7272
}

0 commit comments

Comments
 (0)