mirror of
https://github.com/nushell/nushell.git
synced 2024-11-22 00:13:21 +01:00
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]
|
||||
fn test_toml() {
|
||||
fn open_toml() {
|
||||
test_helper("open_toml");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_json() {
|
||||
fn 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
|
||||
|
@ -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
|
||||
|
@ -1,2 +1,3 @@
|
||||
open tests\test.toml | select package.edition | echo $it
|
||||
cd tests
|
||||
open test.toml | select package.edition | echo $it
|
||||
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
|
||||
|
@ -1,2 +1 @@
|
||||
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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user