From e2925ba01ba086a00411d39344697308056878df Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Thu, 2 Jun 2022 22:53:12 +0300 Subject: [PATCH] Add test/quick.cpp --- test/Jamfile.v2 | 2 ++ test/quick.cpp | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 test/quick.cpp diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index 58417c90..e5758c0a 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -108,3 +108,5 @@ test-suite unordered-exception BOOST_UNORDERED_SWAP_METHOD=2 ] [ run exception/merge_exception_tests.cpp framework ] ; + +run quick.cpp ; diff --git a/test/quick.cpp b/test/quick.cpp new file mode 100644 index 00000000..e0f6a591 --- /dev/null +++ b/test/quick.cpp @@ -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 +#include +#include + +int main() +{ + boost::unordered_map map; + + map[ "2" ] = 2; + + BOOST_TEST_EQ( map[ "1" ], 0 ); + BOOST_TEST_EQ( map[ "2" ], 2 ); + + return boost::report_errors(); +}