Commit f9eb0b8b authored by Victor Zverovich's avatar Victor Zverovich

format-test.h -> gtest-extra.h

parent f912eace
/* /*
Tests of custom gtest assertions. Tests of custom Google Test assertions.
Copyright (c) 2012-2014, Victor Zverovich Copyright (c) 2012-2014, Victor Zverovich
All rights reserved. All rights reserved.
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "format-test.h" #include "gtest-extra.h"
#include <stdexcept> #include <stdexcept>
#include <gtest/gtest-spi.h> #include <gtest/gtest-spi.h>
......
...@@ -25,8 +25,6 @@ ...@@ -25,8 +25,6 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "format-test.h"
#include <cctype> #include <cctype>
#include <cfloat> #include <cfloat>
#include <climits> #include <climits>
...@@ -74,6 +72,7 @@ int open(const char *path, int oflag, int pmode) { ...@@ -74,6 +72,7 @@ int open(const char *path, int oflag, int pmode) {
#endif #endif
#include "format.h" #include "format.h"
#include "gtest-extra.h"
#include <stdint.h> #include <stdint.h>
......
/* /*
Formatting library tests. Custom Google Test assertions.
Copyright (c) 2012-2014, Victor Zverovich Copyright (c) 2012-2014, Victor Zverovich
All rights reserved. All rights reserved.
...@@ -25,6 +25,9 @@ ...@@ -25,6 +25,9 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#ifndef FMT_GTEST_EXTRA_H
#define FMT_GTEST_EXTRA_H
#include <gtest/gtest.h> #include <gtest/gtest.h>
#define FMT_TEST_THROW_(statement, expected_exception, expected_message, fail) \ #define FMT_TEST_THROW_(statement, expected_exception, expected_message, fail) \
...@@ -65,3 +68,5 @@ ...@@ -65,3 +68,5 @@
#define EXPECT_THROW_MSG(statement, expected_exception, expected_message) \ #define EXPECT_THROW_MSG(statement, expected_exception, expected_message) \
FMT_TEST_THROW_(statement, expected_exception, \ FMT_TEST_THROW_(statement, expected_exception, \
expected_message, GTEST_NONFATAL_FAILURE_) expected_message, GTEST_NONFATAL_FAILURE_)
#endif // FMT_GTEST_EXTRA_H
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment