• Philipp A. Hartmann's avatar
    documenttest.cpp: EXPECT_THROW when checking empty allocator (closes #469) · c8d298bc
    Philipp A. Hartmann authored
    In the MoveConstructor/MoveAssignment tests, a check for a `NULL` allocator
    return has been used to check for the correct moved-from state of a Document.
    After the merge of #426, the GetAllocator call fails with an assertion,
    if the allocator of a GenericDocument is NULL.
    
    Check for the throw, instead of NULL in the move-related tests.
    Tested with GCC 4.9 on Linux with C++11 enabled.
    
    Reported-by: @woldendans
    c8d298bc
Name
Last commit
Last update
CMakeModules Loading commit data...
bin Loading commit data...
doc Loading commit data...
example Loading commit data...
include/rapidjson Loading commit data...
test Loading commit data...
thirdparty Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.travis.yml Loading commit data...
CHANGELOG.md Loading commit data...
CMakeLists.txt Loading commit data...
RapidJSON.pc.in Loading commit data...
RapidJSONConfig.cmake.in Loading commit data...
RapidJSONConfigVersion.cmake.in Loading commit data...
appveyor.yml Loading commit data...
library.json Loading commit data...
license.txt Loading commit data...
rapidjson.autopkg Loading commit data...
readme.md Loading commit data...
readme.zh-cn.md Loading commit data...
travis-doxygen.sh Loading commit data...