Cannot create a coding exercise.
Ale0311
Posts: 3
Hello,
I am trying to create a coding exercise and I keep getting this warning when I press the "preview" button in the top right corner. It says thet I should make sure this happens:
- Your Solution passes the tests you wrote in the evaluation File
However I am sure my solution has to pass the test. I have implemented this simple function in C++:
void add_two ( int n, int &d ){
d = n + 2;
}
and here is my test:
TEST_F(Evaluate, ExampleTest) {
int d;
add_two(4,d);
ASSERT_EQ(6,d) << " If n is 4 you should get 6 ";</strong>
}
What am I doing wrong here? I've been stuck for several days now and I could really use your help. Thanks in advance! :smileyhappy:
0