ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/test/metadata.C
Revision: 1.2
Committed: Wed Jul 25 00:03:21 2007 UTC (16 years, 10 months ago) by pippijn
Content type: text/plain
Branch: MAIN
Changes since 1.1: +0 -2 lines
Log Message:
initial import

File Contents

# Content
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"