mirror of
https://github.com/nushell/nushell
synced 2024-12-27 05:23:11 +00:00
21 lines
494 B
Rust
21 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");
|
|
}
|