aboutsummaryrefslogtreecommitdiff
path: root/test/functional/script/luacats_grammar_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/script/luacats_grammar_spec.lua')
-rw-r--r--test/functional/script/luacats_grammar_spec.lua12
1 files changed, 10 insertions, 2 deletions
diff --git a/test/functional/script/luacats_grammar_spec.lua b/test/functional/script/luacats_grammar_spec.lua
index c3ac9fe722..6d444e1888 100644
--- a/test/functional/script/luacats_grammar_spec.lua
+++ b/test/functional/script/luacats_grammar_spec.lua
@@ -1,5 +1,6 @@
-local helpers = require('test.functional.helpers')(after_each)
-local eq = helpers.eq
+local t = require('test.testutil')
+
+local eq = t.eq
local grammar = require('scripts/luacats_grammar')
@@ -151,4 +152,11 @@ describe('luacats grammar', function()
name = '[1]',
type = 'integer',
})
+
+ test('@param type `T` this is a generic type', {
+ desc = 'this is a generic type',
+ kind = 'param',
+ name = 'type',
+ type = '`T`',
+ })
end)