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