mirror of
https://github.com/nushell/nushell.git
synced 2024-11-23 17:03:45 +01:00
22 lines
494 B
Rust
22 lines
494 B
Rust
mod helpers;
|
|
|
|
use helpers::in_directory as cwd;
|
|
|
|
#[test]
|
|
fn external_num() {
|
|
nu!(output,
|
|
cwd("tests/fixtures/formats"),
|
|
"open sgml_description.json | get glossary.GlossDiv.GlossList.GlossEntry.Height | echo $it");
|
|
|
|
assert_eq!(output, "10");
|
|
}
|
|
|
|
#[test]
|
|
fn inc_plugin() {
|
|
nu!(output,
|
|
cwd("tests/fixtures/formats"),
|
|
"open sgml_description.json | get glossary.GlossDiv.GlossList.GlossEntry.Height | inc | echo $it");
|
|
|
|
assert_eq!(output, "11");
|
|
}
|