1
0
forked from alex-eg/sex

tests: add docstring cases

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))