Fix integration tests for Linux

This commit is contained in:
Jonathan Turner 2019-06-03 13:26:29 +12:00
parent ceb81aeaec
commit 0c2be40afc
9 changed files with 17 additions and 12 deletions

View file

@ -55,12 +55,12 @@ mod tests {
}
#[test]
fn test_toml() {
fn open_toml() {
test_helper("open_toml");
}
#[test]
fn test_json() {
fn open_json() {
test_helper("open_json");
}
@ -83,4 +83,4 @@ mod tests {
fn split() {
test_helper("split");
}
}
}

View file

@ -1 +1 @@
"example glossary"
S

View file

@ -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

View file

@ -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

View file

@ -1,2 +1,3 @@
open tests\test.toml | select package.edition | echo $it
cd tests
open test.toml | select package.edition | echo $it
exit

View file

@ -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

View file

@ -1,2 +1 @@
name
version
name

View file

@ -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

View file

@ -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