1#ifndef SCRAN_TESTS_EXPECT_ERROR_HPP
2#define SCRAN_TESTS_EXPECT_ERROR_HPP
4#include <gtest/gtest.h>
23template<
typename Function_>
30 }
catch(std::exception& e) {
35 ASSERT_TRUE(failed) <<
"function did not throw an exception with message '" << match <<
"'";
36 ASSERT_TRUE(msg.find(match) != std::string::npos) <<
"function did not throw an exception with message '" << match <<
"'";
Test utilites for libscran.
Definition compare_almost_equal.hpp:11
void expect_error(Function_ fun, std::string match)
Definition expect_error.hpp:24