diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2012-05-04 14:08:53 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2012-05-04 14:08:53 +0200 |
commit | 37135daaaba2ee1945cb1b1163ddd68127b65b1e (patch) | |
tree | 2ee8f95ee40d73b02df6701b2a8eb90326649791 /src | |
parent | 7fdcc1f6e2d3ccdbd44dbca9061443365f6c56bc (diff) |
More tests
Diffstat (limited to 'src')
-rw-r--r-- | src/testclient.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/testclient.cc b/src/testclient.cc index 26dc572..b0d59a5 100644 --- a/src/testclient.cc +++ b/src/testclient.cc @@ -102,6 +102,7 @@ static int callback_task(struct libwebsocket_context *me, l, LWS_WRITE_TEXT); if(current_test->result == NULL) { + current_test->success = true; current_test++; libwebsocket_callback_on_writable(me, wsi); } @@ -189,10 +190,12 @@ TEST_BEGIN; static struct test tests[] = { { "observe 0", BASE, false }, { "unobserve 0", RMBASE, false }, + { "create 0", NULL, false }, + { "observe 0", BASE"0 create 5 0", false }, + { "update 5 \"My title\"", "0 update 5 \"My title\"", false }, /* - { "create 0", "", false }, - { "observe 0", BASE"0 create 0 5", false }, { "unobserve 0", NULL, false }, + { "observe 0", BASE"0 create 5 0", false }, { "observe 0", BASE"0 add title description 5", false }, { "add title2 description 0", BASE"0 add title2 description 6", false }, { "unobserve 0", NULL, false }, |