Skip to content
Snippets Groups Projects
Commit 2c7017ad authored by Sebastian Ohlmann's avatar Sebastian Ohlmann
Browse files

Add new function: add2

parent 277e64dc
Branches
No related tags found
1 merge request!2Feature
Pipeline #113209 passed
......@@ -2,6 +2,7 @@
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){
......
......@@ -4,6 +4,9 @@
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));
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment