Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
fmt
Commits
f9eb0b8b
Commit
f9eb0b8b
authored
May 02, 2014
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
format-test.h -> gtest-extra.h
parent
f912eace
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
test/assert-test.cc
test/assert-test.cc
+2
-2
test/format-test.cc
test/format-test.cc
+1
-2
test/gtest-extra.h
test/gtest-extra.h
+6
-1
No files found.
test/assert-test.cc
View file @
f9eb0b8b
/*
Tests of custom
gt
est assertions.
Tests of custom
Google T
est assertions.
Copyright (c) 2012-2014, Victor Zverovich
All rights reserved.
...
...
@@ -25,7 +25,7 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "
format-test
.h"
#include "
gtest-extra
.h"
#include <stdexcept>
#include <gtest/gtest-spi.h>
...
...
test/format-test.cc
View file @
f9eb0b8b
...
...
@@ -25,8 +25,6 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "format-test.h"
#include <cctype>
#include <cfloat>
#include <climits>
...
...
@@ -74,6 +72,7 @@ int open(const char *path, int oflag, int pmode) {
#endif
#include "format.h"
#include "gtest-extra.h"
#include <stdint.h>
...
...
test/
format-test
.h
→
test/
gtest-extra
.h
View file @
f9eb0b8b
/*
Formatting library test
s.
Custom Google Test assertion
s.
Copyright (c) 2012-2014, Victor Zverovich
All rights reserved.
...
...
@@ -25,6 +25,9 @@
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef FMT_GTEST_EXTRA_H
#define FMT_GTEST_EXTRA_H
#include <gtest/gtest.h>
#define FMT_TEST_THROW_(statement, expected_exception, expected_message, fail) \
...
...
@@ -65,3 +68,5 @@
#define EXPECT_THROW_MSG(statement, expected_exception, expected_message) \
FMT_TEST_THROW_(statement, expected_exception, \
expected_message, GTEST_NONFATAL_FAILURE_)
#endif // FMT_GTEST_EXTRA_H
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment