feat(ltm): memory safe errors; instance add var & nested functions
This commit is contained in:
parent
e058c107e2
commit
750bee27c7
6 changed files with 197 additions and 19 deletions
|
|
@ -23,6 +23,8 @@ void test_single_placeholder() {
|
|||
TEST_CHECK(template->names.arr[0].name.s == s + 10);
|
||||
TEST_CHECK(template->names.arr[0].name.len == 5);
|
||||
TEST_CHECK(template->names.arr[0].index == 1);
|
||||
|
||||
ltm_template_free(template);
|
||||
}
|
||||
|
||||
void test_single_placeholder_trailing() {
|
||||
|
|
@ -48,6 +50,8 @@ void test_single_placeholder_trailing() {
|
|||
TEST_CHECK(template->names.arr[0].name.s == s + 10);
|
||||
TEST_CHECK(template->names.arr[0].name.len == 5);
|
||||
TEST_CHECK(template->names.arr[0].index == 1);
|
||||
|
||||
ltm_template_free(template);
|
||||
}
|
||||
|
||||
void test_single_nested() {
|
||||
|
|
@ -83,6 +87,8 @@ void test_single_nested() {
|
|||
TEST_CHECK(nested_template->names.arr[0].name.s == s + 33);
|
||||
TEST_CHECK(nested_template->names.arr[0].name.len == 3);
|
||||
TEST_CHECK(nested_template->names.arr[0].index == 1);
|
||||
|
||||
ltm_template_free(template);
|
||||
}
|
||||
|
||||
void test_unclosed_placeholder() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue