mirror of
https://github.com/ethauvin/sdkman-for-fish.git
synced 2025-04-24 21:07:11 -07:00
Add tests for 5.9.2 compatibility
This commit is contained in:
parent
8fe9d790c6
commit
16d432313f
2 changed files with 30 additions and 24 deletions
|
@ -125,6 +125,35 @@ Feature: Shell Completion
|
|||
| 'ant ' | 1.10.1, 1.9.9 | /^\w+$/ |
|
||||
| 'ant 1.10.1 ' | | /.*/ |
|
||||
|
||||
Scenario Outline: Completion for 'home'
|
||||
When the user enters "home <cmd>" into the prompt
|
||||
Then completion should propose "<completions>"
|
||||
But completion should not propose <exclusions>
|
||||
Examples:
|
||||
| cmd | completions | exclusions |
|
||||
| | ant, crash | gradle |
|
||||
| an | ant | crash, gradle |
|
||||
| j | | /.*/ |
|
||||
| 1. | | /.*/ |
|
||||
| 'ant ' | 1.10.1, 1.9.9 | /^\w+$/ |
|
||||
| 'ant 1.10.1 ' | | /.*/ |
|
||||
|
||||
Scenario Outline: Completion for 'env'
|
||||
When the user enters "env <cmd>" into the prompt
|
||||
Then completion should propose "<completions>"
|
||||
But completion should not propose <exclusions>
|
||||
Examples:
|
||||
| cmd | completions | exclusions |
|
||||
| | init, install, clear | /^(?!init\|install\|clear).*$/ |
|
||||
| i | init, install | /^(?!init\|install).*$/ |
|
||||
| ini | init | /^(?!init).*$/ |
|
||||
| ins | install | /^(?!install).*$/ |
|
||||
| c | clear | /^(?!clear).*$/ |
|
||||
| a | | /.*/ |
|
||||
| 'init ' | | /.*/ |
|
||||
| 'clear ' | | /.*/ |
|
||||
| 'install ' | | /.*/ |
|
||||
|
||||
Scenario Outline: Completion for 'current'
|
||||
When the user enters "current <cmd>" into the prompt
|
||||
Then completion should propose "<completions>"
|
||||
|
@ -186,30 +215,6 @@ Feature: Shell Completion
|
|||
| x | | /.*/ |
|
||||
| 'tmp ' | | /.*/ |
|
||||
|
||||
Scenario Outline: Completion for 'home'
|
||||
When the user enters "home <cmd>" into the prompt
|
||||
Then completion should propose "<completions>"
|
||||
But completion should not propose <exclusions>
|
||||
Examples:
|
||||
| cmd | completions | exclusions |
|
||||
| | ant, crash | gradle |
|
||||
| an | ant | crash, gradle |
|
||||
| j | | /.*/ |
|
||||
| 1. | | /.*/ |
|
||||
| 'ant ' | 1.10.1, 1.9.9 | /^\w+$/ |
|
||||
| 'ant 1.10.1 ' | | /.*/ |
|
||||
|
||||
Scenario Outline: Completion for 'env'
|
||||
When the user enters "env <cmd>" into the prompt
|
||||
Then completion should propose "<completions>"
|
||||
But completion should not propose <exclusions>
|
||||
Examples:
|
||||
| cmd | completions | exclusions |
|
||||
| | init | /^(?!init).*$/ |
|
||||
| i | init | /^(?!init).*$/ |
|
||||
| a | | /.*/ |
|
||||
| 'init ' | | /.*/ |
|
||||
|
||||
Scenario Outline: Completion for commands without parameters
|
||||
When the user enters "<cmd>" into the prompt
|
||||
Then completion should not propose /.*/
|
||||
|
|
|
@ -34,3 +34,4 @@ Feature: Wrapping of Bash
|
|||
| sdk use ant 1.9.9 > /dev/null; sdk broadcast |
|
||||
| sdk home ant 1.9.9 |
|
||||
| cd /tmp/env-test; sdk env |
|
||||
| cd /tmp/env-test; sdk env; sdk env clear |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue