Skip to content

Commit

Permalink
vcf/variant/record/info/field/value/array/values/tests: Add test for …
Browse files Browse the repository at this point in the history
…missing string value
  • Loading branch information
zaeleus committed Sep 8, 2024
1 parent d9b98fb commit c940edd
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,14 @@ mod tests {
let mut iter = values.iter();
assert!(iter.next().transpose()?.is_none());

let src = "a,b%3Bc";
let src = "a,b%3Bc,.";
let values: Box<dyn Values<'_, Cow<'_, str>>> = Box::new(src);
assert_eq!(values.len(), 2);
assert_eq!(values.len(), 3);

let mut iter = values.iter();
assert_eq!(iter.next().transpose()?, Some(Some(Cow::from("a"))));
assert_eq!(iter.next().transpose()?, Some(Some(Cow::from("b;c"))));
assert_eq!(iter.next().transpose()?, Some(None));
assert!(iter.next().transpose()?.is_none());

Ok(())
Expand Down

0 comments on commit c940edd

Please sign in to comment.