From aa137615ecf4c334e4afd00c11e9ebe8006b89df Mon Sep 17 00:00:00 2001 From: Daniel James Date: Mon, 19 Sep 2005 20:39:57 +0000 Subject: [PATCH] Add tests for container_fwd to hash tests. [SVN r31044] --- hash/test/Jamfile | 1 + hash/test/Jamfile.v2 | 1 + hash/test/container_fwd_test.cpp | 87 ++++++++++++++++++++++++++++++++ 3 files changed, 89 insertions(+) create mode 100644 hash/test/container_fwd_test.cpp diff --git a/hash/test/Jamfile b/hash/test/Jamfile index f9457b5..33c6f06 100644 --- a/hash/test/Jamfile +++ b/hash/test/Jamfile @@ -46,6 +46,7 @@ rule hash-test-output ( name + ) [ hash-test hash_set_test ] [ hash-test hash_map_test ] [ hash-test link_test link_test_2 ] + [ hash-test container_fwd_test ] ; } diff --git a/hash/test/Jamfile.v2 b/hash/test/Jamfile.v2 index d44265b..dd5a72c 100644 --- a/hash/test/Jamfile.v2 +++ b/hash/test/Jamfile.v2 @@ -25,6 +25,7 @@ test-suite functional/hash [ run hash_set_test.cpp framework ] [ run hash_map_test.cpp framework ] [ run link_test.cpp link_test_2.cpp ] + [ run container_fwd_test.cpp ] ; build-project ../examples ; diff --git a/hash/test/container_fwd_test.cpp b/hash/test/container_fwd_test.cpp new file mode 100644 index 0000000..0409a1e --- /dev/null +++ b/hash/test/container_fwd_test.cpp @@ -0,0 +1,87 @@ +#include + +template +void test(std::basic_string const&) +{ +} + +template +void test(std::deque const&) +{ +} + +template +void test(std::list const&) +{ +} + +template +void test(std::vector const&) +{ +} + +template +void test(std::map const&) +{ +} + +template +void test(std::multimap const&) +{ +} + +template +void test(std::set const&) +{ +} + +template +void test(std::multiset const&) +{ +} + +template +void test(std::bitset const&) +{ +} + +template +void test(std::complex const&) +{ +} + +#include +#include +#include +#include +#include +#include +#include +#include + +int main() +{ + std::deque x1; + std::list x2; + std::vector x3; + std::vector x4; + std::map x5; + std::multimap x6; + std::set x7; + std::multiset > x8; + std::bitset<10> x9; + std::string x10; + std::complex x11; + + test(x1); + test(x2); + test(x3); + test(x4); + test(x5); + test(x6); + test(x7); + test(x8); + test(x9); + test(x10); + test(x11); +}