Dmitry-Me
446c3bcae3
Declarations should occur before anything else
2016-11-11 10:34:56 +03:00
Lee Thomason
13cbc9a708
add test files. fix doc.
2016-10-27 14:55:07 -07:00
Armagetron
3c21d6fbb7
Use correct file pointer
2016-10-13 13:31:23 +02:00
Doruk Turak
1f212f3ab0
Bool-related tests modified to pass
2016-08-28 20:54:17 +02:00
Lee Thomason
c9445466de
fix permissive casting.
2016-07-17 22:53:48 -07:00
Lee Thomason
af9bce1762
support user data
2016-07-17 22:35:52 -07:00
Lee Thomason
51c1271797
add int64 support
2016-06-04 20:18:49 -07:00
Lee Thomason
8553625730
one successful return type. simplify build on vs2015
2016-06-04 19:10:53 -07:00
Lee Thomason
df4ffc00d6
fix warning up from vs2015
2016-06-04 11:32:46 -07:00
Dmitry-Me
a1beddf486
Test error name is non-empty for the whole range
2015-05-26 16:19:21 +03:00
Lee Thomason
8549202800
clean up Value of XMLDocument
2015-05-22 11:07:45 -07:00
Lee Thomason
7a93b33160
tighten up the error checks
2015-05-22 11:00:32 -07:00
Sarat Addepalli
d608c561e0
Fix up xmltest.cpp
...
Fixed coding style in XMLTest(), and removed unused variable in testcase.
2015-05-20 10:19:00 +05:30
Sarat Addepalli
13b2d73427
Add null-checks in `XMLTest()`
...
When either `expected` or `found` is `NULL`, `XMLTest()` will segfault on `strcmp()`.
This patch adds null-checks, and passes the test if both `expected` and `found` are `NULL`.
2015-05-19 12:44:57 +05:30
Sarat Addepalli
a7edb883f0
Add a test case for issue #323
...
When compiled in "debug mode", this test case verifies that an assert is fired, when `XMLDocument::Value()` is called.
2015-05-19 12:39:27 +05:30
Sarat Addepalli
8e85afa406
Fix whitespaces in xmltest.cpp
2015-05-19 09:07:03 +05:30
Sarat Addepalli
2bb6bb5bee
Add a test case for issue #332
...
XML Declarations can occur only at the beginning of an XML Document.
Parse() should throw an error, for not well-formed XML Documents.
2015-05-18 09:16:34 +05:30
Dmitry-Me
5daa54cf2b
Don't leak the element
2015-04-08 17:45:07 +03:00
Dmitry-Me
32533ca9c2
Test there's no error initially, proper swap "found" and "expected"
2015-04-07 10:37:39 +03:00
Dmitry-Me
48b5df0b9b
Document must be initially empty
2015-04-06 18:20:25 +03:00
Lee Thomason
28c7c8c14f
Merge pull request #305 from Dmitry-Me/errorShouldBeClearedAfterLoad
...
If LoadFile() fails then subsequent successful LoadFile() must clear the error
2015-03-26 11:19:28 -07:00
Lee Thomason
f657783cf2
merge fix for save file error
2015-03-26 11:18:21 -07:00
Dmitry-Me
d9852a53af
If LoadFile() fails then subsequent successful LoadFile() must clear the error
2015-03-25 10:17:49 +03:00
Ant Mitchell
189198f19c
Issue 302: clear any previous save error
2015-03-24 16:20:36 +00:00
Ant Mitchell
148cc1a0a5
Issue 299 - test for code changes
2015-03-24 15:12:35 +00:00
Dmitry-Me
6f51c803a1
Resolve crash when printing malformed entities - issue 291
2015-03-14 13:25:03 +03:00
Dmitry-Me
aaa4ceab5e
Test document had content to clear
2015-02-06 16:00:46 +03:00
Lee Thomason
b4e81b014e
Merge pull request #253 from Dmitry-Me/getRidOfC4127InAssert
...
Suppress C4127 in asserts
2014-12-26 16:25:14 -08:00
Dmitry-Me
4bcbf142a8
Suppress C4127 in asserts
2014-12-25 19:05:18 +03:00
Dmitry-Me
588bb8de49
Better tests for empty document
2014-12-25 18:59:18 +03:00
Dmitry-Me
8b67d741d4
Unify character casts, reorganize checks
2014-12-22 11:35:12 +03:00
Lee Thomason
cd011bc1b7
start working through memory bugs
2014-12-17 10:41:34 -08:00
Lee Thomason
2114e47453
Merge pull request #230 from antonindrawan/master
...
Compile TinyXml2 with the Dinkum C++ of QNX 6.5 and QNX 6.6.
2014-11-27 22:34:34 -08:00
Anton Indrawan
8a0006ceda
Compile TinyXml2 with the Dinkum C++ of QNX 6.5 and QNX 6.6. Processed review comment from leethomason
2014-11-20 18:27:07 +01:00
Anton Indrawan
f59e2d6a89
Compile TinyXml2 with the Dinkum C++ of QNX 6.5 and QNX 6.6.
...
When we include c++ headers, we have to use explicit std::
2014-11-18 20:50:42 +01:00
Lee Thomason
b2ec17dd5f
very minor cleanup of commented out code
2014-11-15 17:55:40 -08:00
Lee Thomason
327d5c142e
Merge branch 'properStrPairAssignment' of https://github.com/Dmitry-Me/tinyxml2 into Dmitry-Me-properStrPairAssignment
2014-11-15 17:46:23 -08:00
Lee Thomason
92e521b431
add simple test for not-crashing
2014-11-15 17:45:51 -08:00
Lee Thomason
4de01a9489
Merge pull request #218 from Dmitry-Me/enableLeakTracing
...
Enable dump of debug heap memory leaks
2014-10-30 14:17:34 -07:00
Lee Thomason
f07b952296
fix issue 184. clean up xcode project.
2014-10-30 13:25:12 -07:00
Dmitry-Me
99916599da
Enable dump of debug heap memory leaks
2014-10-23 11:37:03 +04:00
Lee Thomason
c755667aa0
add an error message
2014-09-14 12:39:42 -07:00
Lee Thomason
331596e83c
clean up the scope and names of the error code.
2014-09-11 14:56:43 -07:00
numatrumpet
003368429f
ErrorNames is not implemented by vector<string> but *char[]
2014-09-08 16:36:28 +09:00
numatrumpet
bb5ffac22d
Using C++11, XMLUtil::ToErrorName(XMLError) returns the name of error type
2014-09-06 22:56:46 +09:00
Serhat Eser Erdem
ca5d684a2b
Fixed _CRT_SECURE_NO_WARNINGS macro redefinition warning
2014-04-17 14:06:15 +02:00
Lee Thomason
5bb2d8079b
add variants of SetText() to support types
2014-01-24 10:42:57 -08:00
Lee Thomason
9c0678a01d
trim the test cases and review
2014-01-24 10:18:27 -08:00
Uli Kusterer
321072ee0b
Add tests for SetText().
2014-01-22 04:55:19 +01:00
Lee Thomason
c3708ccf08
implement a fix to floating point precision as proposed by schuellc.
2014-01-14 12:30:03 -08:00
Lee Thomason
3b7927efb5
formatting tweaks
2013-10-26 21:50:46 -07:00
Michael Daumling
ed52328ced
Insert() methods check for inserted XML to be in the same doc, and remove XML from old location if already inserted.
2013-10-23 07:47:29 +02:00
Lee Thomason (grinliz)
db304256bb
clean up the pass/fail logic, still return the same value from test if it fails
2013-07-31 12:24:52 -07:00
Bruno Dias
721b42da8e
make the xmltest to return != 0, if one of the tests has failed.
2013-07-31 11:50:44 -03:00
Lee Thomason (grinliz)
d6bd7360b8
fix floating point specifier and clean up a warning
2013-05-11 20:23:13 -07:00
Lee Thomason
f76fe94012
Merge pull request #110 from pzychotic/tests
...
Small test addition and fix
2013-05-11 20:11:55 -07:00
Thomas Roß
a5221869c2
Added test for return value of QueryDoubleAttribute().
2013-05-11 10:22:12 +02:00
ddiproietto
a8ae1f6a4d
Fixed compilation under MINGW64
...
Necessary on mingw64 2.22
2013-05-05 18:42:52 +03:00
Lee Thomason (grinliz)
d0a38c3a20
fix BOM preservation bugs. add new tests
2013-04-29 09:15:37 -07:00
Vasily Biryukov
1cfafd0d24
Fixed: LoadFile() returns XML_NO_ERROR for empty documents.
2013-04-20 14:12:33 +06:00
Andrew C. Martin
0fd8746f64
correct typos in comments / documentation
2013-03-09 20:09:45 -07:00
Lee Thomason (grinliz)
5efaa5f6bb
Add the (very handy) QueryAttribute
2013-02-01 19:26:30 -08:00
Lee Thomason (grinliz)
ac83b4e278
adjust the size of the memory pools
2013-02-01 09:02:34 -08:00
Martinsh Shaiters
53ab79afad
Add unit test for XMLDocument::Clear().
2013-01-30 11:22:19 +02:00
Lee Thomason
0aecb5c770
Merge remote-tracking branch 'martinsh/issue#53-fix'
2013-01-28 07:23:19 -08:00
Martinsh Shaiters
95b3e6543b
Add test case for element names with leading digit.
2013-01-26 23:08:10 +02:00
Martinsh Shaiters
23e7ae6085
Add test for lead non-alpha characters in attribute names.
2013-01-26 20:15:44 +02:00
Lee Thomason
178e4ccd5b
Add file load to xmltest.
2013-01-25 16:19:05 -08:00
Martinsh Shaiters
c9c8b77d87
Moves example documentation from xmltest.h to xmltest.cpp
2013-01-16 02:08:19 +02:00
Martinsh Shaiters
39ddc268cb
Adds conditional include of io.h when compiling with MinGW
2013-01-15 21:53:08 +02:00
Lee Thomason
a6412ac2d5
add a printing test
2012-12-13 15:39:11 -08:00
Lee Thomason
5b0a677712
fix incorrect assert on unused memory
2012-11-19 13:54:42 -08:00
Lee Thomason
2fa8172236
type XMLError. fix some comments
2012-11-09 12:37:46 -08:00
Lee Thomason
ae9ab0741e
test case for unlinked nodes, commented out
2012-10-24 10:17:53 -07:00
Lee Thomason (grinliz)
99024dc20b
Merge branch 'master' of github.com:leethomason/tinyxml2
2012-09-23 20:26:12 -07:00
Lee Thomason (grinliz)
fc6320e30a
experimented with print f vs. g. increased version
2012-09-23 20:25:50 -07:00
Thomas Roß
0922b7389f
Replaced pragmas with compiler define.
2012-09-23 16:31:22 +02:00
Lee Thomason (grinliz)
e2bcb32494
accept a nBytes argument for Parse()
2012-09-17 17:58:25 -07:00
Lee Thomason (grinliz)
2f1f6247e0
remove trailing spaces
2012-09-16 11:32:34 -07:00
Lee Thomason (grinliz)
0fa8299d99
whitespace tests and review
2012-09-08 21:53:47 -07:00
Lee Thomason (grinliz)
62d1c5a739
fix merge
2012-09-08 21:44:12 -07:00
Lee Thomason (grinliz)
5fbacbec06
fix name parsing to accept additional lead characters
2012-09-08 21:40:53 -07:00
Lee Thomason (grinliz)
491d587484
Merge branch 'master' into whitespace
2012-09-08 21:24:00 -07:00
Lee Thomason (grinliz)
6b8b012daa
added test case for compact save
2012-09-08 21:21:00 -07:00
Lee Thomason (grinliz)
bc1bfb7f27
added whitespace=collapse support. tests work. code needs review
2012-08-20 22:00:38 -07:00
Thomas Roß
a6dd8c66cf
Fixed path to utf8testout.xml.
2012-07-26 20:42:18 +02:00
Lee Thomason
e9699e6cd2
fix up mkdir on win vs. *nix
2012-07-25 12:24:23 -07:00
Arkadiy Shapkin
ef1c69cf15
CreateDirectory replaced by cross-platform mkdir function
2012-07-25 22:10:39 +04:00
Arkadiy Shapkin
ff72d1fb82
Intermediate files added to .gitignore
2012-07-24 00:24:07 +04:00
Lee Thomason
c83127973d
fix some compiler warnings, and fragile code, in the test output
2012-07-16 12:44:41 -07:00
PKEuS
c28ba3aeab
Fixed cppcheck warnings
2012-07-16 03:08:47 -07:00
Lee Thomason
21be882810
Moving string in/out into XMLUtil. Using that across the API. Supporting text queries of primitive types.
2012-07-15 17:27:22 -07:00
Lee Thomason
78a773ddd9
Fix attribute parsing to correctly handle white space
2012-07-02 10:10:19 -07:00
Lee Thomason (grinliz)
390e978da1
Fix infinite loop bug in ShallowEqual. Fix a warning with a re-interpret cast. Up version to 1.0.4
2012-07-01 21:22:53 -07:00
Lee Thomason
7b1b86a1c9
removed confusing getter/setter. cleaned up comments.
2012-06-04 17:01:38 -07:00
Lee Thomason (grinliz)
48ea0bcf80
renamed function, added test case
2012-05-26 14:41:14 -07:00
Bruno Dias
a2d4e6e943
moving xmls and txts to the resources folder.
2012-05-07 04:58:11 -03:00
Lee Thomason
f68c438ee2
added new test for BOM, and added good defaults for NewDeclaration
2012-04-28 14:37:11 -07:00
Lee Thomason
5e3803cac3
Better attribute system. Removes redundant list searching of LinkAttribute. Faster parsing on initial read. Added badly needed missing test cases.
2012-04-16 08:57:05 -07:00
Lee Thomason
d0b19df88c
fix sleazy cast causing compilation issue
2012-04-12 08:41:37 -07:00