use nu_test_support::nu;
#[test]
fn length_columns_in_cal_table() {
let actual = nu!("cal | columns | length");
assert_eq!(actual.out, "7");
}
fn length_columns_no_rows() {
let actual = nu!("echo [] | length");
assert_eq!(actual.out, "0");
fn length_fails_on_echo_record() {
let actual = nu!("echo {a:1 b:2} | length");
assert!(actual.err.contains("only_supports_this_input_type"));