diff --git a/crates/nu-cli/tests/commands/count.rs b/crates/nu-cli/tests/commands/count.rs new file mode 100644 index 0000000000..aecadd6119 --- /dev/null +++ b/crates/nu-cli/tests/commands/count.rs @@ -0,0 +1,13 @@ +use nu_test_support::{nu, pipeline}; + +#[test] +fn count_columns_in_cal_table() { + let actual = nu!( + cwd: ".", pipeline( + r#" + cal | count -c + "# + )); + + assert_eq!(actual.out, "7"); +} diff --git a/crates/nu-cli/tests/commands/mod.rs b/crates/nu-cli/tests/commands/mod.rs index e6db5cdfbc..9e1142c763 100644 --- a/crates/nu-cli/tests/commands/mod.rs +++ b/crates/nu-cli/tests/commands/mod.rs @@ -6,6 +6,7 @@ mod autoenv_untrust; mod cal; mod cd; mod compact; +mod count; mod cp; mod default; mod drop;