Rename some files (#952)

* renamed some files

* clippy

* update tests
This commit is contained in:
Darren Schroeder
2022-02-05 11:35:02 -06:00
committed by GitHub
parent 3eba90232a
commit 2dd32c2b88
35 changed files with 63 additions and 62 deletions

View File

@ -1,16 +1,16 @@
pub mod camel_case;
pub mod command;
pub mod kebab_case;
pub mod pascal_case;
pub mod screaming_snake_case;
pub mod snake_case;
pub mod str_;
pub use camel_case::SubCommand as StrCamelCase;
pub use command::Str;
pub use kebab_case::SubCommand as StrKebabCase;
pub use pascal_case::SubCommand as StrPascalCase;
pub use screaming_snake_case::SubCommand as StrScreamingSnakeCase;
pub use snake_case::SubCommand as StrSnakeCase;
pub use str_::Str;
use nu_engine::CallExt;

View File

@ -38,7 +38,7 @@ impl Command for Str {
#[cfg(test)]
mod test {
use super::*;
use crate::Str;
#[test]
fn test_examples() {

View File

@ -1,2 +1,2 @@
mod command;
pub use command::SubCommand as Trim;
mod trim_;
pub use trim_::SubCommand as Trim;

View File

@ -321,7 +321,8 @@ fn trim(s: &str, char_: Option<char>, closure_flags: &ClosureFlags) -> String {
#[cfg(test)]
mod tests {
use super::*;
use crate::strings::str_::trim::trim_::*;
use nu_protocol::{Span, Value};
#[test]
fn test_examples() {