summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDan Nicholson <dbn.lists@gmail.com>2008-03-27 08:56:06 -0700
committerDan Nicholson <dbn.lists@gmail.com>2008-03-27 08:56:06 -0700
commit28f4c25a9aa457ed32cda26e0ee1bc9b6cc80bc3 (patch)
tree06aaf13d82b017ce48fc01fd73269b5fecf00444 /test
parentfcae0e737240308c2376f0611f453c7e14091b20 (diff)
Add dep_pop wrapper around strarg_pop
Added a dep_pop wrapper API around strarg_pop for dep_t types.
Diffstat (limited to 'test')
-rw-r--r--test/tdep.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/tdep.c b/test/tdep.c
index b88919e..2fd83db 100644
--- a/test/tdep.c
+++ b/test/tdep.c
@@ -24,8 +24,16 @@ int main(int argc, char *argv[])
bar = dep_copy(foo);
dep_add(bar, "again");
+ printf("Contents of bar dep:\n");
print_dep(bar);
+ printf("Removing last two deps from foo\n");
+ dep_pop(foo);
+ dep_pop(foo);
+
+ printf("Contents of foo dep:\n");
+ print_dep(foo);
+
dep_free(foo);
dep_free(bar);