04-24-2020 04:32 AM
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:
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 ";
}
What am I doing wrong here? I've been stuck for several days now and I could really use your help. Thanks in advance!
04-24-2020 02:23 PM
Hey @Ale0311, have you reached instructorsupport@udemy.com yet? The team is best equipped to look into this for you.
User | Likes Count |
---|---|
16 | |
5 | |
4 | |
4 | |
4 |
Ooops, it looks like you’re not a registered Udemy instructor. Want to become an instructor? We’d love to have you!
Become an instructor Already an instructor? Sign in
You can join the Instructor Club after you publish your first course. In the meantime, you’ll find plenty of help and advice in Studio U.