Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
testing_example
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mpcdf
testing_example
Commits
9898ca7d
Commit
9898ca7d
authored
3 years ago
by
Sebastian Ohlmann
Browse files
Options
Downloads
Patches
Plain Diff
Remove add2 function
parent
bf5abf5e
No related branches found
No related tags found
No related merge requests found
Pipeline
#113213
passed
3 years ago
Stage: unit_test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/funcs.cpp
+0
-1
0 additions, 1 deletion
src/funcs.cpp
tests/test_funcs.cpp
+0
-3
0 additions, 3 deletions
tests/test_funcs.cpp
with
0 additions
and
4 deletions
src/funcs.cpp
+
0
−
1
View file @
9898ca7d
...
...
@@ -2,7 +2,6 @@
using
namespace
std
;
int
add
(
int
a
,
int
b
){
return
a
+
b
;}
int
add2
(
int
a
,
int
b
){
return
a
+
b
+
2
;}
int
sub
(
int
a
,
int
b
){
return
a
-
b
;}
int
mul
(
int
a
,
int
b
){
return
a
*
b
;}
int
dv
(
int
a
,
int
b
){
...
...
This diff is collapsed.
Click to expand it.
tests/test_funcs.cpp
+
0
−
3
View file @
9898ca7d
...
...
@@ -4,9 +4,6 @@
TEST
(
FuncsTest
,
Add
){
EXPECT_EQ
(
6
,
add
(
4
,
2
));
};
TEST
(
FuncsTest
,
Add2
){
EXPECT_EQ
(
8
,
add2
(
4
,
2
));
};
TEST
(
FuncsTest
,
Sub
){
EXPECT_EQ
(
2
,
sub
(
4
,
2
));
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment