nu-command 0.106.0

Nushell's built-in commands
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use nu_test_support::{nu, pipeline};

#[test]
fn can_encode_and_decode_urlencoding() {
    let actual = nu!(
        cwd: "tests/fixtures/formats", pipeline(
            r#"
                open sample.url
                | url build-query
                | from url
                | get cheese
            "#
    ));

    assert_eq!(actual.out, "comté");
}