diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-05-26 14:36:57 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-05-26 14:36:57 +0000 |
commit | a820665eea71a64b40e74ed24afeaf07a7a99db4 (patch) | |
tree | 515af31ac2ed78aa92ce7e90e478bdb452e6e438 /src/xmlstringreader.cpp | |
parent | bd5bb1ca60a6a97b110cbf221b3625e6e6200141 (diff) | |
download | libbu++-a820665eea71a64b40e74ed24afeaf07a7a99db4.tar.gz libbu++-a820665eea71a64b40e74ed24afeaf07a7a99db4.tar.bz2 libbu++-a820665eea71a64b40e74ed24afeaf07a7a99db4.tar.xz libbu++-a820665eea71a64b40e74ed24afeaf07a7a99db4.zip |
Added the first of many unit tests. For now the unit tests are just built with
everything else in the all target of the makefile, which is fine, but relies on
CppTest, which can be found at http://cpptest.sf.net
Also fixed some things I've been meaning to get to for a while in the xml
system, including a few bugs that will make coping with malformed data not hang
other programs, and do the error reporting in a nice way.
Diffstat (limited to '')
-rw-r--r-- | src/xmlstringreader.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xmlstringreader.cpp b/src/xmlstringreader.cpp index aa7174f..82caacd 100644 --- a/src/xmlstringreader.cpp +++ b/src/xmlstringreader.cpp | |||
@@ -1,4 +1,5 @@ | |||
1 | #include "xmlstringreader.h" | 1 | #include "xmlstringreader.h" |
2 | #include "xmlexception.h" | ||
2 | #include <string.h> | 3 | #include <string.h> |
3 | 4 | ||
4 | XmlStringReader::XmlStringReader( const char *sString, bool bStrip ) | 5 | XmlStringReader::XmlStringReader( const char *sString, bool bStrip ) |
@@ -24,7 +25,7 @@ char XmlStringReader::getChar( int nAdd ) | |||
24 | } | 25 | } |
25 | else | 26 | else |
26 | { | 27 | { |
27 | return '\0'; | 28 | throw XmlException("End of XML stream read."); |
28 | } | 29 | } |
29 | } | 30 | } |
30 | 31 | ||