Add better documentation

This commit is contained in:
PedroEdiaz
2025-05-24 20:20:10 -06:00
parent 8c1a5620db
commit 22997f3dfb
3 changed files with 60 additions and 62 deletions

View File

@@ -1,3 +1,4 @@
#+private
package template
import "core:testing"
@@ -97,3 +98,10 @@ test13 :: proc(t: ^testing.T){
defer delete(tmp)
testing.expect(t, tmp==" ", tmp)
}
@(test)
test14 :: proc(t: ^testing.T){
fmt := "{{{}}}"
tmp := template(fmt,{})
defer delete(tmp)
testing.expect(t, tmp=="}", tmp)
}