summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-05-31 16:50:48 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-05-31 16:50:48 +0200
commit6da2cc533eacdbe983a0e539da1092071ea750e6 (patch)
tree3c8a81e6ebdec573fd76531819173fd461b70924 /tests
parent7297cb3791a83a10ca3f5018f5e1d53e63bcc77b (diff)
downloadedoors-6da2cc533eacdbe983a0e539da1092071ea750e6.zip
edoors-6da2cc533eacdbe983a0e539da1092071ea750e6.tar.gz
complete link_value tests
Diffstat (limited to 'tests')
-rw-r--r--tests/particle.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/tests/particle.c b/tests/particle.c
index cc9e8d2..a6d2d17 100644
--- a/tests/particle.c
+++ b/tests/particle.c
@@ -58,16 +58,16 @@ void test_particle()
check_cond((eina_accessor_data_get(acc,4,&p)==EINA_FALSE),"!!!!! eina_accessor_data_get should fail");;
- check_cond((p0->link_value==NULL),"!!!!! link_value should be NULL");;
+ check_cond((p0->link_value==NULL),"!!!!! link_value should be NULL");
eiotas_particle_data_set(p0,"key0","val0");
- check_cond((p0->link_value==NULL),"!!!!! link_value should be NULL");;
+ check_cond((p0->link_value==NULL),"!!!!! link_value should be NULL");
eiotas_particle_data_set(p0,"key1","val1");
- check_str((char*)p0->link_value,"val1","!!!!! link_value is wrong");;
+ check_str((char*)p0->link_value,"val1","!!!!! link_value is wrong");
eiotas_particle_data_set(p0,"key2","val2");
- check_str((char*)p0->link_value,"val2val1","!!!!! link_value is wrong");;
+ check_str((char*)p0->link_value,"val2val1","!!!!! link_value is wrong");
eiotas_particle_data_set(p0,"key3","val3");
- check_str((char*)p0->link_value,"val2val1","!!!!! link_value is wrong");;
+ check_str((char*)p0->link_value,"val2val1","!!!!! link_value is wrong");
if(strcmp(eiotas_particle_data_get(p0,"key0"),"val0")!=0) fprintf(stderr,"ERROR\n");
if(strcmp(eiotas_particle_data_get(p0,"key1"),"val1")!=0) fprintf(stderr,"ERROR\n");
@@ -76,10 +76,13 @@ void test_particle()
eiotas_particle_data_del(p0,"key0");
if(eiotas_particle_data_get(p0,"key0")!=NULL) fprintf(stderr,"ERROR\n");
- check_str((char*)p0->link_value,"val2val1","!!!!! link_value is wrong");;
+ check_str((char*)p0->link_value,"val2val1","!!!!! link_value is wrong");
eiotas_particle_data_del(p0,"key2");
if(eiotas_particle_data_get(p0,"key2")!=NULL) fprintf(stderr,"ERROR\n");
- check_str((char*)p0->link_value,"val1","!!!!! link_value is wrong");;
+ check_str((char*)p0->link_value,"val1","!!!!! link_value is wrong");
+ eiotas_particle_data_del(p0,"key1");
+ if(eiotas_particle_data_get(p0,"key1")!=NULL) fprintf(stderr,"ERROR\n");
+ check_cond((p0->link_value==NULL),"!!!!! link_value should be NULL");
p1 = eiotas_require_particle(dom0);
p2 = eiotas_require_particle(dom0);