mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-31 03:47:16 +02:00
Merge branch 'feature/quick-test' into feature/gha-cmake
This commit is contained in:
@ -89,3 +89,5 @@ run exception/erase_exception_tests.cpp ;
|
|||||||
run exception/rehash_exception_tests.cpp ;
|
run exception/rehash_exception_tests.cpp ;
|
||||||
run exception/swap_exception_tests.cpp : : : <define>BOOST_UNORDERED_SWAP_METHOD=2 ;
|
run exception/swap_exception_tests.cpp : : : <define>BOOST_UNORDERED_SWAP_METHOD=2 ;
|
||||||
run exception/merge_exception_tests.cpp ;
|
run exception/merge_exception_tests.cpp ;
|
||||||
|
|
||||||
|
run quick.cpp ;
|
||||||
|
19
test/quick.cpp
Normal file
19
test/quick.cpp
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
// Copyright 2022 Peter Dimov
|
||||||
|
// Distributed under the Boost Software License, Version 1.0.
|
||||||
|
// https://www.boost.org/LICENSE_1_0.txt
|
||||||
|
|
||||||
|
#include <boost/unordered_map.hpp>
|
||||||
|
#include <boost/core/lightweight_test.hpp>
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
boost::unordered_map<std::string, int> map;
|
||||||
|
|
||||||
|
map[ "2" ] = 2;
|
||||||
|
|
||||||
|
BOOST_TEST_EQ( map[ "1" ], 0 );
|
||||||
|
BOOST_TEST_EQ( map[ "2" ], 2 );
|
||||||
|
|
||||||
|
return boost::report_errors();
|
||||||
|
}
|
Reference in New Issue
Block a user