Add test file for count command (#2358)

* Add test file for count command

* rustfmt + Clippy
This commit is contained in:
Joseph T. Lyons 2020-08-15 23:16:49 -04:00 committed by GitHub
parent c59f860b48
commit b1a946f0dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View 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");
}

View File

@ -6,6 +6,7 @@ mod autoenv_untrust;
mod cal;
mod cd;
mod compact;
mod count;
mod cp;
mod default;
mod drop;