2019-07-16 12:28:55 +02:00
|
|
|
mod helpers;
|
2019-06-02 05:37:09 +02:00
|
|
|
|
2019-07-16 12:28:55 +02:00
|
|
|
use helpers::in_directory as cwd;
|
2019-06-02 05:37:09 +02:00
|
|
|
|
2019-07-16 12:28:55 +02:00
|
|
|
#[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");
|
|
|
|
}
|
2019-06-24 09:59:23 +02:00
|
|
|
|
2019-07-16 12:28:55 +02:00
|
|
|
#[test]
|
|
|
|
fn inc_plugin() {
|
|
|
|
nu!(output,
|
|
|
|
cwd("tests/fixtures/formats"),
|
|
|
|
"open sgml_description.json | get glossary.GlossDiv.GlossList.GlossEntry.Height | inc | echo $it");
|
2019-07-04 05:18:19 +02:00
|
|
|
|
2019-07-16 12:28:55 +02:00
|
|
|
assert_eq!(output, "11");
|
2019-06-03 03:26:29 +02:00
|
|
|
}
|