Skip to content

Commit

Permalink
tests(math): drop assert_relative_eq in favor of assert_eq
Browse files Browse the repository at this point in the history
  • Loading branch information
qkaiser committed Nov 6, 2024
1 parent 68c04fe commit 4ec28e2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/math_tools.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ pub fn init_module(root_module: &Bound<'_, PyModule>) -> PyResult<()> {

#[cfg(test)]
mod tests {
use approx::assert_relative_eq;

use super::*;

mod shannon {
Expand All @@ -92,7 +90,7 @@ mod tests {
fn test_shannon_entropy() {
let input = b"000111"; // 50% entropy distribution ~ 1 bit information

assert_relative_eq!(shannon_entropy(input), 1.0);
assert_eq!(shannon_entropy(input), 1.0);
}
}

Expand Down

0 comments on commit 4ec28e2

Please sign in to comment.