aboutsummaryrefslogtreecommitdiff
path: root/src/unit
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2008-09-04 22:09:51 +0000
committerMike Buland <eichlan@xagasoft.com>2008-09-04 22:09:51 +0000
commit5dbc8f155b16759b4ebb82aceb3759c686489e3b (patch)
tree01b7a1fa8b79614614508d335daa1f3116dd15a1 /src/unit
parent0047991313fd7c67b45c59d58e3fde0236bf3872 (diff)
downloadlibbu++-5dbc8f155b16759b4ebb82aceb3759c686489e3b.tar.gz
libbu++-5dbc8f155b16759b4ebb82aceb3759c686489e3b.tar.bz2
libbu++-5dbc8f155b16759b4ebb82aceb3759c686489e3b.tar.xz
libbu++-5dbc8f155b16759b4ebb82aceb3759c686489e3b.zip
XML is important, I guess...
Diffstat (limited to '')
-rw-r--r--src/unit/xml.cpp39
1 files changed, 39 insertions, 0 deletions
diff --git a/src/unit/xml.cpp b/src/unit/xml.cpp
new file mode 100644
index 0000000..e845cc1
--- /dev/null
+++ b/src/unit/xml.cpp
@@ -0,0 +1,39 @@
1/*
2 * Copyright (C) 2007-2008 Xagasoft, All rights reserved.
3 *
4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE.
6 */
7
8#include "bu/fstring.h"
9#include "bu/unitsuite.h"
10#include "bu/xmlreader.h"
11#include "bu/membuf.h"
12
13class Unit : public Bu::UnitSuite
14{
15public:
16 Unit()
17 {
18 setName("Xml");
19 addTest( Unit::declaration );
20 }
21
22 virtual ~Unit()
23 {
24 }
25
26 void declaration()
27 {
28 Bu::FString sXml("<?xml ?> <hi />");
29 Bu::MemBuf buf( sXml );
30 Bu::XmlReader xr( buf );
31 }
32
33};
34
35int main( int argc, char *argv[] )
36{
37 return Unit().run( argc, argv );
38}
39