tests: add docstring cases
Some checks failed
Sex CI / build-linux (pull_request) Failing after 4m47s
Sex CI / build-linux (push) Failing after 4m50s

This commit was merged in pull request #30.
This commit is contained in:
2026-09-21 22:24:47 +03:00
parent 1685b0c31f
commit 434086ade8
3 changed files with 107 additions and 14 deletions

View File

@@ -9,7 +9,9 @@
(pub var greet-count int 0)
(pub struct greeting ((text (* const char)) (times int)))
(pub struct greeting
"A greeting to print."
((text (* const char)) (times int)))
(pub enum mood (cheerful grumpy))
@@ -24,6 +26,7 @@
`(printf "%s " ,(symbol->string name))))))
(pub fn greet ((name (* const char))) void
"Print a greeting for NAME."
(++ greet-count)
(printf "hello, %s\n" name))