Skip to content

Commit c9fe628

Browse files
committed
made test
1 parent aaf3bde commit c9fe628

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,10 @@ mod tests {
7373
mergesort(&mut arr);
7474
assert_eq!(arr, [-2, 1, 2, 4, 5, 6, 9]);
7575
}
76+
#[test]
77+
fn test_shell_sort(){
78+
let mut arr = [6, 2, 4, 1, 9, -2, 5];
79+
shellsort(&mut arr);
80+
assert_eq!(arr, [-2, 1, 2, 4, 5, 6, 9]);
81+
}
7682
}

0 commit comments

Comments
 (0)