mirror of
https://github.com/nushell/nushell.git
synced 2024-12-22 23:23:12 +01:00
Fix integration tests for Linux
This commit is contained in:
parent
ceb81aeaec
commit
0c2be40afc
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
name
|
||||
|
@ -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