Clean up many strdups
This commit is contained in:
@@ -103,6 +103,12 @@ static void test_eval_sym_undefined(void) {
|
||||
TEST_ASSERT_OBJ_ERROR(response);
|
||||
}
|
||||
|
||||
static void test_eval_nested_error(void) {
|
||||
response = eval("(+ (error \"foo\") 3)");
|
||||
TEST_ASSERT_OBJ_ERROR(response);
|
||||
}
|
||||
|
||||
|
||||
int main(void) {
|
||||
UNITY_BEGIN();
|
||||
|
||||
@@ -117,6 +123,7 @@ int main(void) {
|
||||
RUN_TEST(test_eval_string);
|
||||
RUN_TEST(test_eval_sym_defined);
|
||||
RUN_TEST(test_eval_sym_undefined);
|
||||
RUN_TEST(test_eval_nested_error);
|
||||
|
||||
return UNITY_END();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user