forked from extern/nushell
Add test file for count command (#2358)
* Add test file for count command * rustfmt + Clippy
This commit is contained in:
parent
c59f860b48
commit
b1a946f0dc
13
crates/nu-cli/tests/commands/count.rs
Normal file
13
crates/nu-cli/tests/commands/count.rs
Normal file
@ -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");
|
||||||
|
}
|
@ -6,6 +6,7 @@ mod autoenv_untrust;
|
|||||||
mod cal;
|
mod cal;
|
||||||
mod cd;
|
mod cd;
|
||||||
mod compact;
|
mod compact;
|
||||||
|
mod count;
|
||||||
mod cp;
|
mod cp;
|
||||||
mod default;
|
mod default;
|
||||||
mod drop;
|
mod drop;
|
||||||
|
Loading…
Reference in New Issue
Block a user