aboutsummaryrefslogtreecommitdiff
path: root/vector_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'vector_test.c')
-rw-r--r--vector_test.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/vector_test.c b/vector_test.c
index 2bbe1d7..dcab29b 100644
--- a/vector_test.c
+++ b/vector_test.c
@@ -115,5 +115,16 @@ Test(vectortests, pop_test){
115 cr_assert(pop(&vec)==3); 115 cr_assert(pop(&vec)==3);
116} 116}
117 117
118Test(vectortests, find_test){
119 push(&vec, 3);
120 push(&vec, 6);
121 push(&vec, 9);
122
123 cr_assert(find(vec, 9)==2);
124
125 cr_assert(find(vec, 99)==-1);
126
127}
128
118 129
119 130