mirror of
https://github.com/nushell/nushell
synced 2025-01-28 04:45:18 +00:00
18 lines
371 B
Rust
18 lines
371 B
Rust
|
use test_support::{nu, pipeline};
|
||
|
|
||
|
#[test]
|
||
|
fn can_encode_and_decode_urlencoding() {
|
||
|
let actual = nu!(
|
||
|
cwd: "tests/fixtures/formats", pipeline(
|
||
|
r#"
|
||
|
open sample.url
|
||
|
| to-url
|
||
|
| from-url
|
||
|
| get cheese
|
||
|
| echo $it
|
||
|
"#
|
||
|
));
|
||
|
|
||
|
assert_eq!(actual, "comté");
|
||
|
}
|