diff options
author | Mike Buland <eichlan@xagasoft.com> | 2009-01-07 15:59:57 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2009-01-07 15:59:57 +0000 |
commit | 45e065bc4fc93731ea9a0543462bc7cf9e6084d7 (patch) | |
tree | a9e8279fe00b9b01dc2393f59dc7f41b5e416b2a /src/unit/xml.cpp | |
parent | d96fe229e79f9b1947cbd24ff52d6bf7bb9bf80d (diff) | |
download | libbu++-45e065bc4fc93731ea9a0543462bc7cf9e6084d7.tar.gz libbu++-45e065bc4fc93731ea9a0543462bc7cf9e6084d7.tar.bz2 libbu++-45e065bc4fc93731ea9a0543462bc7cf9e6084d7.tar.xz libbu++-45e065bc4fc93731ea9a0543462bc7cf9e6084d7.zip |
Only two real changes. First, Bu::FString and Bu::FBasicString are in different
files. This won't affect any programs at all anywhere. This will just make it
easier to maintain and extend later. You still want to include "bu/fstring.h"
and use Bu::FString in code.
The other is kinda fun. I created a special format for unit tests, they use the
extension .unit now and use the mkunit.sh script to convert them to c++ code.
There are some nice features here too, maintaining unit tests is much, much
easier, and we can have more features without making the code any harder to use.
Also, it will be easier to have the unit tests generate reports and be run from
a master program and the like.
Diffstat (limited to 'src/unit/xml.cpp')
-rw-r--r-- | src/unit/xml.cpp | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/src/unit/xml.cpp b/src/unit/xml.cpp deleted file mode 100644 index e845cc1..0000000 --- a/src/unit/xml.cpp +++ /dev/null | |||
@@ -1,39 +0,0 @@ | |||
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 | |||
13 | class Unit : public Bu::UnitSuite | ||
14 | { | ||
15 | public: | ||
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 | |||
35 | int main( int argc, char *argv[] ) | ||
36 | { | ||
37 | return Unit().run( argc, argv ); | ||
38 | } | ||
39 | |||