Add unit test and fix

This commit is contained in:
PedroEdiaz
2025-05-20 13:35:03 -06:00
parent dda306aa43
commit 4e2a98bf8c
3 changed files with 116 additions and 6 deletions

View File

@@ -27,8 +27,11 @@ main :: proc() {
"name": "Alice",
"place": "Odinland",
}
defer delete(values)
result := template.template(fmt, values)
defer delete(result)
fmt.println(result) // Output: Hello, Alice! Welcome to Odinland.
}
```
@@ -71,3 +74,4 @@ Keys must exactly match the strings in the dictionary.
## Contributing
Contributions are welcome! Feel free to submit issues or pull requests.
For every issue please add a test