diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-06-02 15:21:50 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-06-02 15:21:50 +0200 |
commit | 227a25cd896657ef22d0d9d6980c9329c9607538 (patch) | |
tree | a7865c73f8f59b5b684b17b50e87d1cb28f40b3f /tests/particle.c | |
parent | 5286704c1363b4d291d5c649c4a12830069065e5 (diff) | |
download | edoors-227a25cd896657ef22d0d9d6980c9329c9607538.zip edoors-227a25cd896657ef22d0d9d6980c9329c9607538.tar.gz |
test/particles: simple fix
Diffstat (limited to 'tests/particle.c')
-rw-r--r-- | tests/particle.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/particle.c b/tests/particle.c index 272b5be..2ee4951 100644 --- a/tests/particle.c +++ b/tests/particle.c @@ -97,6 +97,8 @@ void test_particle() if(eiotas_particle_data_get(p0,"key1")!=NULL) fprintf(stderr,"ERROR\n"); check_cond((p0->link_value==NULL),"link_value should be NULL"); + p2 = eiotas_require_particle(dom0); + eiotas_particle_destinations_add(p2,"door"); eiotas_particle_split_dst(p2); check_cond((p2->cur_room==NULL),"room must be NULL"); @@ -131,7 +133,6 @@ void test_particle() check_str((char*)p2->cur_door,"door","door is wrong"); check_str((char*)p2->cur_room,"room/room","room is wrong"); - p2 = eiotas_require_particle(dom0); p3 = eiotas_require_particle(dom0); p4 = eiotas_require_particle(dom0); eiotas_particle_merge(p0,p1); |