2019-12-17 19:54:39 +01:00
|
|
|
use nu_test_support::{nu, pipeline};
|
2019-12-15 17:15:06 +01:00
|
|
|
|
|
|
|
#[test]
|
|
|
|
fn can_encode_and_decode_urlencoding() {
|
|
|
|
let actual = nu!(
|
|
|
|
cwd: "tests/fixtures/formats", pipeline(
|
|
|
|
r#"
|
|
|
|
open sample.url
|
2020-05-04 10:44:33 +02:00
|
|
|
| to url
|
|
|
|
| from url
|
2019-12-15 17:15:06 +01:00
|
|
|
| get cheese
|
|
|
|
"#
|
|
|
|
));
|
|
|
|
|
2020-05-07 13:03:43 +02:00
|
|
|
assert_eq!(actual.out, "comté");
|
2019-12-15 17:15:06 +01:00
|
|
|
}
|