| 3 | #include "stream1.h" |
| 4 | |
| 5 | void stream1_tests() { |
| 6 | struct hc_memory_stream s; |
| 7 | hc_memory_stream_init(&s, &hc_malloc_default); |
| 8 | hc_defer(hc_stream_deinit(&s.stream)); |
| 9 | hc_printf(&s.stream, "%s%d", "foo", 42); |
| 10 | assert(strcmp("foo42", hc_memory_stream_string(&s)) == 0); |
| 11 | } |
no test coverage detected