| 2 | #include "reflect.h" |
| 3 | |
| 4 | void reflect_tests() { |
| 5 | struct hc_value v; |
| 6 | hc_value_init(&v, &HC_STRING)->as_string = strdup("foo"); |
| 7 | hc_defer(hc_value_deinit(&v)); |
| 8 | struct hc_value c; |
| 9 | hc_value_copy(&c, &v); |
| 10 | hc_defer(hc_value_deinit(&c)); |
| 11 | assert(strcmp(c.as_string, v.as_string) == 0); |
| 12 | } |
no test coverage detected