13 Commits

Author SHA1 Message Date
Silas S. Brown
b7734d97c0 Remove unnecessary wording from BSD license not needed for MIT license (fixes #528) 2020-10-09 10:04:27 +01:00
Minmin Gong
ff76343336 Update the code to adapt the new gtest. 2018-07-16 20:36:20 -07:00
Milo Yip
5cd62c235d Add StringBuffer::GetLength()
Fix #744
2016-09-22 18:11:22 +08:00
Jason Smith
252e8122bf Fix buffer overrun using PutN (closes #672)
Fix inconsistent calling of template functions in PutN in stream.h. When
used with a GenericStringBuffer<<UTF8>, MemoryPoolAllocator>, PutN would call
PutReserve from stream.h, and PutUnsafe from stringbuffer.h. This
resulted in bytes being added to the buffer without allocating space.

This was not an issue when used with the default memory allocator,
because in this case the specialized PutN is used from stringbuffer.h.
2016-06-30 14:18:14 -07:00
Milo Yip
d8c793f23f Disable type_traits 2016-01-23 15:27:59 +08:00
Milo Yip
a6eb15d274 Fix warnings in clang for C++11 2016-01-23 14:37:15 +08:00
miloyip
8d39282af5 Update license headers for tests 2015-04-18 21:41:38 +08:00
miloyip
c0ba5cffcd Add comment 2015-04-14 10:01:22 +08:00
miloyip
056125db82 Improve coverage of Stack 2015-04-14 10:00:53 +08:00
miloyip
978a3ab830 Fix VS2012 compilation fail in stringbuffertest 2015-03-23 17:30:25 +08:00
Milo Yip
26491cff1e Fix additional compilation errors in unit tests for VC 2014-11-23 19:03:06 +08:00
Drew Noakes
6aa664eeef Document traits of types using <type_traits> and static_assert in tests.
The tests state the current traits of types Document, Value and
StringBuffer. There are slight differences between them. It seems like a
good idea to extend this approach across more types, and to review the
expected traits across the board.
2014-10-31 11:00:57 +00:00
Drew Noakes
0bfd0a5205 Add unit tests for StringBuffer. 2014-10-30 17:08:45 +00:00