From d3e5c5a34247fe7d089f236bd0073f647277986f Mon Sep 17 00:00:00 2001 From: Luccas Mateus de Medeiros Gomes Date: Wed, 3 Nov 2021 09:19:28 -0300 Subject: [PATCH] Fix tests --- crates/nu-command/src/math/floor.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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 {}) }