Skip to content

Commit

Permalink
More code coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
twitchax committed Dec 21, 2022
1 parent 556d25f commit 8f9032c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
5 changes: 5 additions & 0 deletions src/named_pitch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,4 +369,9 @@ mod tests {
fn test_improper_add() {
let _ = C.named_pitch() + 50;
}

#[test]
fn test_properties() {
assert_eq!(NamedPitch::A.named_pitch(), NamedPitch::A);
}
}
11 changes: 0 additions & 11 deletions src/pitch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,6 @@ impl HasPitch for Pitch {
}
}

// Blanket impls.

default impl<T> HasBaseFrequency for T
where
T: HasPitch,
{
fn base_frequency(&self) -> f32 {
self.pitch().base_frequency()
}
}

// Tests.

#[cfg(test)]
Expand Down

0 comments on commit 8f9032c

Please sign in to comment.