From 978559fdfad83b27635fb517f051208233d7c4d2 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sun, 24 Jan 2021 15:56:53 +0100 Subject: [PATCH] type: Add a few more tests --- tests/checks/type.fish | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/checks/type.fish b/tests/checks/type.fish index 47e46b784..d698823b7 100644 --- a/tests/checks/type.fish +++ b/tests/checks/type.fish @@ -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