Skip to content

Commit 355d830

Browse files
committed
fix: ensure empty-slice panic tests pass under release builds
1 parent 30d9655 commit 355d830

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/kmer.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,12 +1016,14 @@ pub mod test {
10161016
}
10171017

10181018
#[test]
1019+
#[cfg(debug_assertions)]
10191020
#[should_panic(expected = "validate_and_pack requires a non-empty slice")]
10201021
fn pack_canonical_panics_on_empty_slice() {
10211022
let _ = pack_canonical(b"");
10221023
}
10231024

10241025
#[test]
1026+
#[cfg(debug_assertions)]
10251027
#[should_panic(expected = "validate_and_pack requires a non-empty slice")]
10261028
fn validate_and_pack_panics_on_empty_slice() {
10271029
let _ = validate_and_pack(b"");

0 commit comments

Comments
 (0)