mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-10 12:51:15 -03:00
type: Add a few more tests
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user