diff --git a/Cargo.lock b/Cargo.lock index 8fced45..5013044 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -57,7 +57,7 @@ checksum = "a3e2c3daef883ecc1b5d58c15adae93470a91d425f3532ba1695849656af3fc1" [[package]] name = "bwavfile" -version = "2.0.1" +version = "2.1.0" dependencies = [ "byteorder", "chrono", diff --git a/src/bext.rs b/src/bext.rs index a000782..87cc9ce 100644 --- a/src/bext.rs +++ b/src/bext.rs @@ -92,7 +92,7 @@ impl Default for Bext { description: "".to_string(), originator: "".to_string(), originator_reference: "".to_string(), - origination_date:now.date_naive().format("%Y-%m%-d").to_string(), + origination_date: now.date_naive().format("%Y-%m%-d").to_string(), origination_time: now.time().format("%H:%M:%S").to_string(), time_reference: 0, version: 0, @@ -106,3 +106,18 @@ impl Default for Bext { } } } + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn build_default() { + let d = Bext::default(); + assert_eq!(d.description, ""); + assert_eq!(d.originator, ""); + assert_eq!(d.originator_reference, ""); + assert_eq!(d.version, 0); + assert_eq!(d.time_reference, 0); + } +}