nushell/crates/nu-cli/tests/commands/count.rs
Joseph T. Lyons b1a946f0dc
Add test file for count command (#2358)
* Add test file for count command

* rustfmt + Clippy
2020-08-16 15:16:49 +12:00

14 lines
220 B
Rust

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