Skip to content

Commit

Permalink
Merge pull request #525 from rsteube/reenable-test
Browse files Browse the repository at this point in the history
re-enable test
  • Loading branch information
rsteube authored May 6, 2022
2 parents 1f8d8f8 + 053dc86 commit 46086f1
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions example/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,14 @@ var tests = map[string]string{
`example multiparts VALUE=one,DIRECTORY=`: "/",
}

//func TestBash(t *testing.T) {
// if err := exec.Command("bash", "--version").Run(); err != nil {
// t.Skip("skipping bash")
// }
// for cmdline, text := range tests {
// doComplete(t, "bash", cmdline, text)
// }
//}
func TestBash(t *testing.T) {
if err := exec.Command("bash", "--version").Run(); err != nil {
t.Skip("skipping bash")
}
for cmdline, text := range tests {
doComplete(t, "bash", cmdline, text)
}
}

func TestElvish(t *testing.T) {
if err := exec.Command("elvish", "--version").Run(); err != nil {
Expand All @@ -146,23 +146,23 @@ func TestFish(t *testing.T) {
}
}

//func TestXonsh(t *testing.T) {
// if err := exec.Command("xonsh", "--version").Run(); err != nil {
// t.Skip("skipping xonsh")
// }
// for cmdline, text := range tests {
// doComplete(t, "xonsh", cmdline, text)
// }
//}
//
//func TestOil(t *testing.T) {
// if err := exec.Command("oil", "--version").Run(); err != nil {
// t.Skip("skipping oil")
// }
// for cmdline, text := range tests {
// doComplete(t, "oil", cmdline, text)
// }
//}
func TestXonsh(t *testing.T) {
if err := exec.Command("xonsh", "--version").Run(); err != nil {
t.Skip("skipping xonsh")
}
for cmdline, text := range tests {
doComplete(t, "xonsh", cmdline, text)
}
}

func TestOil(t *testing.T) {
if err := exec.Command("oil", "--version").Run(); err != nil {
t.Skip("skipping oil")
}
for cmdline, text := range tests {
doComplete(t, "oil", cmdline, text)
}
}

//func TestPowershell(t *testing.T) {
// if err := exec.Command("pwsh", "--version").Run(); err != nil {
Expand All @@ -173,14 +173,14 @@ func TestFish(t *testing.T) {
// }
//}

//func TestZsh(t *testing.T) {
// if err := exec.Command("zsh", "--version").Run(); err != nil {
// t.Skip("skipping zsh")
// }
// for cmdline, text := range tests {
// doComplete(t, "zsh", cmdline, text)
// }
//}
func TestZsh(t *testing.T) {
if err := exec.Command("zsh", "--version").Run(); err != nil {
t.Skip("skipping zsh")
}
for cmdline, text := range tests {
doComplete(t, "zsh", cmdline, text)
}
}

func TestCarapace(t *testing.T) {
carapace.Test(t)
Expand Down

0 comments on commit 46086f1

Please sign in to comment.