diff --git a/crates/nu-command/src/math/floor.rs b/crates/nu-command/src/math/floor.rs index 84f4c9388..ea1e4cbb4 100644 --- a/crates/nu-command/src/math/floor.rs +++ b/crates/nu-command/src/math/floor.rs @@ -61,13 +61,12 @@ fn operate(value: Value, head: Span) -> Value { } #[cfg(test)] -mod tests { - use super::ShellError; - use super::SubCommand; +mod test { + use super::*; #[test] - fn examples_work_as_expected() -> Result<(), ShellError> { - use crate::examples::test as test_examples; + fn test_examples() { + use crate::test_examples; test_examples(SubCommand {}) }