forked from fmtlib/fmt
format-test.h -> gtest-extra.h
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
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 @@
|
|||||||
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 @@
|
|||||||
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) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "format.h"
|
#include "format.h"
|
||||||
|
#include "gtest-extra.h"
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
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 @@
|
|||||||
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 @@
|
|||||||
#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
|
Reference in New Issue
Block a user