diff --git a/crates/nu-command/src/generators/generate.rs b/crates/nu-command/src/generators/generate.rs index 6dcb28b451..e23b1ab955 100644 --- a/crates/nu-command/src/generators/generate.rs +++ b/crates/nu-command/src/generators/generate.rs @@ -171,18 +171,6 @@ used as the next argument to the closure, otherwise generation stops. } } -#[cfg(test)] -mod test { - use super::*; - - #[test] - fn test_examples() { - use crate::test_examples; - - test_examples(Generate {}) - } -} - fn get_initial_state( initial: Option, signature: &Signature, @@ -214,3 +202,15 @@ fn get_initial_state( } } } + +#[cfg(test)] +mod test { + use super::*; + + #[test] + fn test_examples() { + use crate::test_examples; + + test_examples(Generate {}) + } +}