|
|
@@ -81,7 +81,7 @@ TEST(EnsureTest, ThrowsIfFailed) {
|
|
|
TEST(EnsureTest, CanBeMadeToCaptureRval) {
|
|
|
auto function = [](std::string const & expected) -> std::string {
|
|
|
contract_postconditions(std::string);
|
|
|
- ensures($return == expected);
|
|
|
+ ensures(_return == expected);
|
|
|
contract_return("this is a string");
|
|
|
};
|
|
|
EXPECT_THROW(function("hello world!"), std::runtime_error);
|