Skip to content

Commit

Permalink
vcf/header/record/value/map/format/number: Add default test
Browse files Browse the repository at this point in the history
  • Loading branch information
zaeleus committed Aug 14, 2024
1 parent d044c90 commit 007d4bc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions noodles-vcf/src/header/record/value/map/format/number.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,13 @@ impl Default for Number {
Self::Count(1)
}
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
fn test_default() {
assert_eq!(Number::default(), Number::Count(1));
}
}

0 comments on commit 007d4bc

Please sign in to comment.