summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-06-01 10:30:22 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-06-01 10:30:22 +0200
commit090d38ec3cfff930366327fe7460aecb00ffaa02 (patch)
tree5a8f1c73fe13e9d65e9f8ccb9cc645f625165011 /tests
parent7f4ca37aaae8229bbf0deae35d35b24f96b16e78 (diff)
downloadedoors-090d38ec3cfff930366327fe7460aecb00ffaa02.zip
edoors-090d38ec3cfff930366327fe7460aecb00ffaa02.tar.gz
add eiotas_particle_has_dst with tests
Diffstat (limited to 'tests')
-rw-r--r--tests/particle.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/particle.c b/tests/particle.c
index 823ac12..2734eff 100644
--- a/tests/particle.c
+++ b/tests/particle.c
@@ -11,7 +11,10 @@ void test_particle()
p0 = eiotas_require_particle(dom0);
+ check_cond(!eiotas_particle_has_dst(p0),"should be no destination");
+
eiotas_particle_destinations_add(p0,"dom0/room0/door0?get");
+ check_cond(eiotas_particle_has_dst(p0),"should be a destination");
eiotas_particle_destinations_add(p0," dom0/room0/door0?get ");
eiotas_particle_destinations_add(p0," dom0/room0/door0?get ");
eiotas_particle_destinations_add(p0,"dom0/room0/room1/doorx?get,door?get,dom0/room0/door0?get");