ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/test/metadata.C
Revision: 1.6
Committed: Wed Sep 5 11:23:15 2007 UTC (16 years, 8 months ago) by pippijn
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +3 -3 lines
Log Message:
removed GPLed code and put license back to BSD

File Contents

# Content
1 /*
2 * metadata.C: Metadata tests
3 * Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team
4 * Rights to this code are documented in doc/poddoc/license.pod
5 *
6 * $Id: metadata.C,v 1.5 2007-08-30 19:56:26 pippijn Exp $
7 */
8
9 #include "unit/test.h"
10
11 test<1> ()
12 {
13 metadata *md;
14 myuser_t *mu = myuser_t::create ("name", "pass", "email", 0);
15
16 md = mu->add_metadata ("cow", "moo");
17 ensure_streq (md->value, "moo");
18 mu->del_metadata ("cow");
19 mu->add_metadata ("cow2", "moo2");
20 mu->clear_metadata ();
21 md = mu->find_metadata ("moo");
22 ensure_null (md);
23 }
24
25 #include "unit/runtest.h"