| Revision: | 1.2 |
| Committed: | Wed Jul 25 00:03:21 2007 UTC (19 years, 2 months ago) by pippijn |
| Content type: | text/plain |
| Branch: | MAIN |
| Changes since 1.1: | +0 -2 lines |
| Log Message: | initial import |
| # | User | Rev | Content |
|---|---|---|---|
| 1 | pippijn | 1.1 | #include "unit/test.h" |
| 2 | |||
| 3 | test<1> () | ||
| 4 | { | ||
| 5 | metadata *md; | ||
| 6 | myuser_t *mu = myuser_add ("name", "pass", "email", 0); | ||
| 7 | |||
| 8 | mu->add_metadata ("cow", "moo"); | ||
| 9 | ensure_streq (md->value, "moo"); | ||
| 10 | mu->del_metadata ("cow"); | ||
| 11 | mu->add_metadata ("cow2", "moo2"); | ||
| 12 | mu->clear_metadata (); | ||
| 13 | ensure_null (md); | ||
| 14 | } | ||
| 15 | |||
| 16 | #include "unit/runtest.h" |