mirror of
https://github.com/nushell/nushell.git
synced 2025-01-11 16:58:41 +01:00
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 cd;
|
||||
mod compact;
|
||||
mod count;
|
||||
mod cp;
|
||||
mod default;
|
||||
mod drop;
|
||||
|
Loading…
Reference in New Issue
Block a user