forked from boostorg/core
Increase the size of test type
This commit is contained in:
1 parent
ba79489ea1
commit
b5c178ef0b
1 file changed
+5
-2
@@ -10,11 +10,14 @@ Distributed under the Boost Software License, Version 1.0.
|
||||
|
||||
class type {
|
||||
public:
|
||||
explicit type(int) { }
|
||||
explicit type(double value)
|
||||
: value_(value) { }
|
||||
|
||||
private:
|
||||
type(const type&);
|
||||
type& operator=(const type&);
|
||||
|
||||
double value_;
|
||||
};
|
||||
|
||||
void test_value_type()
|
||||
@@ -157,7 +160,7 @@ void test_allocate()
|
||||
a.deallocate(p, 1);
|
||||
p = a.allocate(0);
|
||||
a.deallocate(p, 0);
|
||||
BOOST_TEST_THROWS(a.allocate(a.max_size()), std::bad_alloc);
|
||||
BOOST_TEST_THROWS(a.allocate(a.max_size() + 1), std::bad_alloc);
|
||||
}
|
||||
|
||||
void test_allocate_deallocate()
|
||||
|
||||
Reference in new issue
Block a user