()
| 1134 | |
| 1135 | #[test] |
| 1136 | fn test_aux_record() { |
| 1137 | let mut record = bam::Record::new(); |
| 1138 | let aux_integer_field = Aux::I32(1234); |
| 1139 | record.push_aux(b"XI", aux_integer_field).unwrap(); |
| 1140 | let aux_record = AuxRecord::new(&record, &Some(vec!["XI".to_string()])); |
| 1141 | let expected_aux_record = AuxRecord(HashMap::from_iter(vec![( |
| 1142 | "XI".to_string(), |
| 1143 | "1234".to_string(), |
| 1144 | )])); |
| 1145 | assert_eq!(aux_record, expected_aux_record); |
| 1146 | } |
| 1147 | |
| 1148 | #[test] |
| 1149 | fn test_aux_record_to_string() { |