summaryrefslogtreecommitdiff
path: root/tests.c
diff options
context:
space:
mode:
authorJoshua Haberman <joshua@reverberate.org>2009-07-02 20:19:06 -0700
committerJoshua Haberman <joshua@reverberate.org>2009-07-02 20:19:06 -0700
commitb0ef7f0b6778addc91ce04ca1d6e835d44387c83 (patch)
treeb67f490bd178d53c5fa2bc550fef77b0062efafb /tests.c
parentb8481e0e55aebad1d9ffa0f3845609f929bca02f (diff)
More fixes, completions, still doesn't quite work.
Diffstat (limited to 'tests.c')
-rw-r--r--tests.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests.c b/tests.c
index de8e951..c42ebd9 100644
--- a/tests.c
+++ b/tests.c
@@ -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;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback