Skip to content

Commit

Permalink
Unwrap instead of asserting Ok
Browse files Browse the repository at this point in the history
  • Loading branch information
jch-13 committed Mar 23, 2021
1 parent 61fd0d3 commit c75310f
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/bam/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2363,27 +2363,27 @@ CCCCCCCCCCCCCCCCCCC"[..],
let array_u32: Vec<u32> = vec![std::u32::MIN, 0, 1, std::u32::MAX];
let array_f32: Vec<f32> = vec![std::f32::MIN, 0.0, -0.0, 0.1, 0.99, std::f32::MAX];

assert!(test_record
test_record
.push_aux(b"XA", Aux::ArrayI8((&array_i8).into()))
.is_ok());
assert!(test_record
.unwrap();
test_record
.push_aux(b"XB", Aux::ArrayU8((&array_u8).into()))
.is_ok());
assert!(test_record
.unwrap();
test_record
.push_aux(b"XC", Aux::ArrayI16((&array_i16).into()))
.is_ok());
assert!(test_record
.unwrap();
test_record
.push_aux(b"XD", Aux::ArrayU16((&array_u16).into()))
.is_ok());
assert!(test_record
.unwrap();
test_record
.push_aux(b"XE", Aux::ArrayI32((&array_i32).into()))
.is_ok());
assert!(test_record
.unwrap();
test_record
.push_aux(b"XF", Aux::ArrayU32((&array_u32).into()))
.is_ok());
assert!(test_record
.unwrap();
test_record
.push_aux(b"XG", Aux::ArrayFloat((&array_f32).into()))
.is_ok());
.unwrap();

{
let tag = b"XA";
Expand Down

0 comments on commit c75310f

Please sign in to comment.