diff --git a/.gitignore b/.gitignore index 8e31229..8dbcd63 100644 --- a/.gitignore +++ b/.gitignore @@ -118,3 +118,5 @@ /proj/vs/vector_test.vcxproj.user /doc/html /doc/autodoc.xml +/proj/vs/deque_test.vcxproj +/proj/vs/stable_vector_test.vcxproj diff --git a/proj/vs/deque_test.vcxproj b/proj/vs/deque_test.vcxproj deleted file mode 100644 index 1d5e9b7..0000000 --- a/proj/vs/deque_test.vcxproj +++ /dev/null @@ -1,185 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - {58CCE183-6092-48FE-A4F7-BA0D3A792655} - Win32Proj - 10.0 - - - - Application - v143 - MultiByte - - - Application - v143 - MultiByte - - - Application - v143 - MultiByte - - - Application - v143 - MultiByte - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>15.0.27625.0 - - - $(Platform)\$(Configuration)\$(TargetName)\ - $(Platform)\$(Configuration)\$(TargetName)\Int\ - false - $(ProjectName) - - - false - $(ProjectName) - $(Platform)\$(Configuration)\$(TargetName)\ - $(Platform)\$(Configuration)\$(TargetName)\Int\ - - - $(Platform)\$(Configuration)\$(TargetName)\ - $(Platform)\$(Configuration)\$(TargetName)\Int\ - false - - - false - $(Platform)\$(Configuration)\$(TargetName)\ - $(Platform)\$(Configuration)\$(TargetName)\Int\ - - - - Disabled - ../../../..;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - EnableFastChecks - MultiThreadedDebugDLL - true - - Level4 - ProgramDatabase - Default - - - winmm.lib;%(AdditionalDependencies) - ../../../../stage/lib;%(AdditionalLibraryDirectories) - true - $(OutDir)deque_test.pdb - Console - MachineX86 - false - - - - - Disabled - ../../../..;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - EnableFastChecks - MultiThreadedDebugDLL - true - - - Level4 - ProgramDatabase - Default - - - winmm.lib;%(AdditionalDependencies) - ../../../../stage/lib;%(AdditionalLibraryDirectories) - true - $(OutDir)deque_test.pdb - Console - false - - - - - ../../../..;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - MultiThreadedDLL - true - - Level4 - - Default - - - winmm.lib;%(AdditionalDependencies) - ../../../../stage/lib;%(AdditionalLibraryDirectories) - true - Console - true - true - MachineX86 - false - - - - - ../../../..;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - MultiThreadedDLL - true - - - Level4 - - - Default - - - winmm.lib;%(AdditionalDependencies) - ../../../../stage/lib;%(AdditionalLibraryDirectories) - true - Console - true - true - false - - - - - - - - - \ No newline at end of file diff --git a/proj/vs/stable_vector_test.vcxproj b/proj/vs/stable_vector_test.vcxproj deleted file mode 100644 index 6a0532f..0000000 --- a/proj/vs/stable_vector_test.vcxproj +++ /dev/null @@ -1,184 +0,0 @@ - - - - - Debug - Win32 - - - Debug - x64 - - - Release - Win32 - - - Release - x64 - - - - {5E11C8D3-FA52-760A-84FE-943A6BA05A21} - Win32Proj - 10.0 - - - - Application - v143 - MultiByte - - - Application - v143 - MultiByte - - - Application - v143 - MultiByte - - - Application - v143 - MultiByte - - - - - - - - - - - - - - - - - - - <_ProjectFileVersion>15.0.27625.0 - - - $(Platform)\$(Configuration)\$(TargetName)\ - $(Platform)\$(Configuration)\$(TargetName)\Int\ - false - $(ProjectName) - - - false - $(ProjectName) - $(Platform)\$(Configuration)\$(TargetName)\ - $(Platform)\$(Configuration)\$(TargetName)\Int\ - - - $(Platform)\$(Configuration)\$(TargetName)\ - $(Platform)\$(Configuration)\$(TargetName)\Int\ - false - - - false - $(Platform)\$(Configuration)\$(TargetName)\ - $(Platform)\$(Configuration)\$(TargetName)\Int\ - - - - Disabled - ../../../..;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - EnableFastChecks - MultiThreadedDebugDLL - true - - Level4 - ProgramDatabase - Default - - - winmm.lib;%(AdditionalDependencies) - ../../../../stage/lib;%(AdditionalLibraryDirectories) - true - $(OutDir)stable_vector_test.pdb - Console - MachineX86 - false - - - - - Disabled - ../../../..;%(AdditionalIncludeDirectories) - WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) - EnableFastChecks - MultiThreadedDebugDLL - true - - - Level4 - ProgramDatabase - Default - - - winmm.lib;%(AdditionalDependencies) - ../../../../stage/lib;%(AdditionalLibraryDirectories) - true - $(OutDir)stable_vector_test.pdb - Console - false - - - - - ../../../..;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - MultiThreadedDLL - true - - Level4 - ProgramDatabase - Default - - - winmm.lib;%(AdditionalDependencies) - ../../../../stage/lib;%(AdditionalLibraryDirectories) - true - Console - true - true - MachineX86 - false - - - - - ../../../..;%(AdditionalIncludeDirectories) - WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) - MultiThreadedDLL - true - - - Level4 - ProgramDatabase - Default - - - winmm.lib;%(AdditionalDependencies) - ../../../../stage/lib;%(AdditionalLibraryDirectories) - true - Console - true - true - false - - - - - - - - - \ No newline at end of file diff --git a/test/deque_test.cpp b/test/deque_test.cpp index e928d7f..f81069c 100644 --- a/test/deque_test.cpp +++ b/test/deque_test.cpp @@ -366,11 +366,13 @@ int main () std::cerr << "test_cont_variants< std::allocator > failed" << std::endl; return 1; } + // boost::container::allocator if(test_cont_variants< allocator >()){ std::cerr << "test_cont_variants< allocator > failed" << std::endl; return 1; } + //////////////////////////////////// // Default init test //////////////////////////////////// @@ -406,10 +408,14 @@ int main () //////////////////////////////////// { typedef boost::container::deque cont_int; - cont_int a; a.push_back(0); a.push_back(1); a.push_back(2); - boost::intrusive::test::test_iterator_random< cont_int >(a); - if(boost::report_errors() != 0) { - return 1; + for(std::size_t i = 1; i <= 10000; i*=10){ + cont_int a; + for (int j = 0; j < (int)i; ++j) + a.push_back((int)j); + boost::intrusive::test::test_iterator_random< cont_int >(a); + if(boost::report_errors() != 0) { + return 1; + } } } diff --git a/test/devector_test.cpp b/test/devector_test.cpp index ed1581e..b637c85 100644 --- a/test/devector_test.cpp +++ b/test/devector_test.cpp @@ -4029,10 +4029,14 @@ int main() //////////////////////////////////// { typedef boost::container::devector cont_int; - cont_int a; a.push_back(0); a.push_back(1); a.push_back(2); - boost::intrusive::test::test_iterator_random< cont_int >(a); - if (boost::report_errors() != 0) { - return 1; + for (std::size_t i = 10; i <= 10000; i *= 10) { + cont_int a; + for (int j = 0; j < (int)i; ++j) + a.push_back((int)j); + boost::intrusive::test::test_iterator_random< cont_int >(a); + if (boost::report_errors() != 0) { + return 1; + } } } diff --git a/test/small_vector_test.cpp b/test/small_vector_test.cpp index 1e49068..8d1aaf5 100644 --- a/test/small_vector_test.cpp +++ b/test/small_vector_test.cpp @@ -244,11 +244,15 @@ int main() // Iterator testing //////////////////////////////////// { - typedef boost::container::small_vector cont_int; - cont_int a; a.push_back(0); a.push_back(1); a.push_back(2); - boost::intrusive::test::test_iterator_random< cont_int >(a); - if(boost::report_errors() != 0) { - return 1; + typedef boost::container::small_vector cont_int; + for (std::size_t i = 10; i <= 10000; i *= 10) { + cont_int a; + for (int j = 0; j < (int)i; ++j) + a.push_back((int)j); + boost::intrusive::test::test_iterator_random< cont_int >(a); + if (boost::report_errors() != 0) { + return 1; + } } } diff --git a/test/stable_vector_test.cpp b/test/stable_vector_test.cpp index adcf259..0d64628 100644 --- a/test/stable_vector_test.cpp +++ b/test/stable_vector_test.cpp @@ -173,10 +173,14 @@ int main() //////////////////////////////////// { typedef boost::container::stable_vector cont_int; - cont_int a; a.push_back(0); a.push_back(1); a.push_back(2); - boost::intrusive::test::test_iterator_random< cont_int >(a); - if(boost::report_errors() != 0) { - return 1; + for (std::size_t i = 10; i <= 10000; i *= 10) { + cont_int a; + for (int j = 0; j < (int)i; ++j) + a.push_back((int)j); + boost::intrusive::test::test_iterator_random< cont_int >(a); + if (boost::report_errors() != 0) { + return 1; + } } } diff --git a/test/vector_test.cpp b/test/vector_test.cpp index 40360d9..d896bdf 100644 --- a/test/vector_test.cpp +++ b/test/vector_test.cpp @@ -331,10 +331,14 @@ int main() //////////////////////////////////// { typedef boost::container::vector cont_int; - cont_int a; a.push_back(0); a.push_back(1); a.push_back(2); - boost::intrusive::test::test_iterator_random< cont_int >(a); - if(boost::report_errors() != 0) { - return 1; + for (std::size_t i = 10; i <= 10000; i *= 10) { + cont_int a; + for (int j = 0; j < (int)i; ++j) + a.push_back((int)j); + boost::intrusive::test::test_iterator_random< cont_int >(a); + if (boost::report_errors() != 0) { + return 1; + } } }