• 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
..
CMakeLists.txt Loading commit data...
allocatorstest.cpp Loading commit data...
bigintegertest.cpp Loading commit data...
documenttest.cpp Loading commit data...
encodedstreamtest.cpp Loading commit data...
encodingstest.cpp Loading commit data...
filestreamtest.cpp Loading commit data...
itoatest.cpp Loading commit data...
jsoncheckertest.cpp Loading commit data...
namespacetest.cpp Loading commit data...
pointertest.cpp Loading commit data...
prettywritertest.cpp Loading commit data...
readertest.cpp Loading commit data...
simdtest.cpp Loading commit data...
stringbuffertest.cpp Loading commit data...
strtodtest.cpp Loading commit data...
unittest.cpp Loading commit data...
unittest.h Loading commit data...
valuetest.cpp Loading commit data...
writertest.cpp Loading commit data...