feat(comment): add comment on a struct field

This commit is contained in:
Oleksandr Smirnov 2025-09-04 14:36:12 +03:00
parent 3cd45c45a3
commit 9bffa2c212
No known key found for this signature in database
9 changed files with 100 additions and 7 deletions

View file

@ -18,6 +18,18 @@ comment["should add comment to struct"] = function()
do_the_test("struct", { 4, 1 })
end
comment["should add a comment on struct field"] = function()
do_the_test("struct_fields", { 5, 8 })
end
comment["should add a comment on var struct field"] = function()
do_the_test("var_struct_fields", { 6, 4 })
end
comment["should add a comment on one field of many structs"] = function()
do_the_test("many_structs_fields", { 10, 4 })
end
comment["should add comment to function"] = function()
do_the_test("func", { 3, 1 })
end