mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 18:53:44 +08:00
type: Add a few more tests
This commit is contained in:
parent
baa9b21a6f
commit
978559fdfa
|
@ -58,3 +58,17 @@ type -p alias
|
|||
|
||||
type -s alias
|
||||
# CHECK: alias is a function (defined in {{.*}}/alias.fish)
|
||||
|
||||
function test-type
|
||||
echo this is a type test
|
||||
end
|
||||
|
||||
type test-type
|
||||
# CHECK: test-type is a function with definition
|
||||
# CHECK: # Defined in {{.*}}/type.fish @ line {{\d+}}
|
||||
# CHECK: function test-type
|
||||
# CHECK: echo this is a type test
|
||||
# CHECK: end
|
||||
|
||||
type -p test-type
|
||||
# CHECK: {{.*}}/type.fish
|
||||
|
|
Loading…
Reference in New Issue
Block a user