mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 10:36:00 +02:00
@ -13,4 +13,5 @@ mod tsv;
|
||||
mod url;
|
||||
mod vcf;
|
||||
mod xlsx;
|
||||
mod xml;
|
||||
mod yaml;
|
||||
|
17
crates/nu-cli/tests/format_conversions/xml.rs
Normal file
17
crates/nu-cli/tests/format_conversions/xml.rs
Normal file
@ -0,0 +1,17 @@
|
||||
use nu_test_support::{nu, pipeline};
|
||||
|
||||
#[test]
|
||||
fn table_to_xml_text_and_from_xml_text_back_into_table() {
|
||||
let actual = nu!(
|
||||
cwd: "tests/fixtures/formats", pipeline(
|
||||
r#"
|
||||
open jonathan.xml
|
||||
| to xml
|
||||
| from xml
|
||||
| get rss.children.channel.children.0.item.children.0.guid.attributes.isPermaLink
|
||||
| echo $it
|
||||
"#
|
||||
));
|
||||
|
||||
assert_eq!(actual.out, "true");
|
||||
}
|
Reference in New Issue
Block a user