nu-command 0.114.1

Nushell's built-in commands
Documentation
1
2
3
4
5
6
7
8
9
use nu_test_support::prelude::*;

#[test]
fn doesnt_accept_mixed_type_list_as_input() -> Result {
    let code = "[{foo: bar} [quux baz]] | into record";
    let err = test().run(code).expect_shell_error()?;
    assert!(matches!(err, ShellError::TypeMismatch { .. }));
    Ok(())
}