FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
CaffeOnACL/unit_tests/test.cpp at master · 2php/CaffeOnACL · GitHub
2php
CaffeOnACL
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
CaffeOnACL
/
unit_tests
/
test.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
37 lines (22 loc) · 455 Bytes
Breadcrumbs
CaffeOnACL
/
unit_tests
/
test.cpp
Copy path
File metadata and controls
37 lines (22 loc) · 455 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#
include
"
gtest/gtest.h
"
template
<
typename
TypeParam>
class
foo
: public ::testing::Test {
public:
foo
(){};
~foo
(){};
TypeParam data;
};
typedef
::testing::Types<
int
,
float
> TestDtype;
TYPED_TEST_CASE
(foo,TestDtype);
TYPED_TEST
(foo,test1)
{
TypeParam a=
10
;
this
->
data
=
10
;
EXPECT_EQ
(
this
->
data
,a);
}
int
main
(
int
argc,
char
* argv[])
{
::testing::InitGoogleTest
(&argc, argv);
return
RUN_ALL_TESTS
();
return
0
;
}
Back
|
FazBrowse Home
|
New Git URL