forked from extern/nushell
Merge pull request #76 from jonathandturner/fix_linux_tests
Fix integration tests for Linux
This commit is contained in:
commit
47ee9780f1
@ -55,12 +55,12 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_toml() {
|
fn open_toml() {
|
||||||
test_helper("open_toml");
|
test_helper("open_toml");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_json() {
|
fn open_json() {
|
||||||
test_helper("open_json");
|
test_helper("open_json");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
"example glossary"
|
S
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
open tests\test.json | to-json | from-json | select glossary.title | echo $it
|
cd tests
|
||||||
|
open test.json | to-json | from-json | select glossary.GlossDiv.title | echo $it
|
||||||
exit
|
exit
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
open tests\test.json | select glossary.GlossDiv.GlossList.GlossEntry.GlossSee | echo $it
|
cd tests
|
||||||
|
open test.json | select glossary.GlossDiv.GlossList.GlossEntry.GlossSee | echo $it
|
||||||
exit
|
exit
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
open tests\test.toml | select package.edition | echo $it
|
cd tests
|
||||||
|
open test.toml | select package.edition | echo $it
|
||||||
exit
|
exit
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
open tests\test.toml --raw | split-row "\n" | skip 1 | first 4 | split-column "=" | sort-by Column1 | skip 1 | first 1 | select Column1 | trim | echo $it
|
cd tests
|
||||||
|
open test.toml --raw | split-row "\n" | skip 1 | first 4 | split-column "=" | sort-by Column1 | skip 1 | first 1 | select Column1 | trim | echo $it
|
||||||
exit
|
exit
|
||||||
|
@ -1,2 +1 @@
|
|||||||
name
|
name
|
||||||
version
|
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
open tests\test.toml --raw | split-row "\n" | skip 1 | first 2 | split-column "=" | select Column1 | trim | echo $it
|
cd tests
|
||||||
|
open test.toml --raw | split-row "\n" | skip 1 | first 1 | split-column "=" | select Column1 | trim | echo $it
|
||||||
exit
|
exit
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
open tests\test.toml | to-toml | from-toml | select package.name | echo $it
|
cd tests
|
||||||
|
open test.toml | to-toml | from-toml | select package.name | echo $it
|
||||||
exit
|
exit
|
||||||
|
Loading…
Reference in New Issue
Block a user