diff options
author | Joshua Haberman <joshua@reverberate.org> | 2009-07-02 20:19:06 -0700 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2009-07-02 20:19:06 -0700 |
commit | b0ef7f0b6778addc91ce04ca1d6e835d44387c83 (patch) | |
tree | b67f490bd178d53c5fa2bc550fef77b0062efafb /tests.c | |
parent | b8481e0e55aebad1d9ffa0f3845609f929bca02f (diff) |
More fixes, completions, still doesn't quite work.
Diffstat (limited to 'tests.c')
-rw-r--r-- | tests.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -1,7 +1,12 @@ + #include <assert.h> #include <stdio.h> #include <stdlib.h> +#include "descriptor.c" #include "upb_parse.c" +#include "upb_context.c" +#include "upb_msg.c" +#include "upb_table.c" void test_get_v_uint64_t() { @@ -51,9 +56,16 @@ void test_get_v_uint64_t() assert(status == UPB_STATUS_NEED_MORE_DATA); } +void test_upb_context() { + struct upb_context c; + assert(upb_context_init(&c)); + upb_context_free(&c); +} + int main() { test_get_v_uint64_t(); + test_upb_context(); printf("All tests passed.\n"); return 0; } |