Merge pull request #76 from jonathandturner/fix_linux_tests

Fix integration tests for Linux
This commit is contained in:
Jonathan Turner 2019-06-03 13:30:50 +12:00 committed by GitHub
commit 47ee9780f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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");
}

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

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