Skip to content

Commit 7daeb2c

Browse files
author
Kimmo
committed
Fix strcmp and stub everything
1 parent 0830413 commit 7daeb2c

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

QtExercise1/test_runner/test_runner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ void test_runner::hello_still_worlds() {
4747
useful test_useful;
4848

4949
POINT(hello_still_worlds, 5);
50-
QVERIFY2(!strcmp(test_useful.hello(), "Hello, world!", "world"));
50+
QVERIFY2(!strcmp(test_useful.hello(), "Hello, world!"), "world");
5151

5252
}

QtExercise2/src/useful.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@ useful::~useful()
77

88
void useful::hello(QString helloText)
99
{
10+
// BEGIN SOLUTION
1011
emit usefulSignal(helloText);
12+
// END SOLUTION
13+
// Write emit code here
1114
}

QtExercise3/src/useful.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,8 @@ useful::useful() {
55
}
66

77
int useful::mul(int i1, int i2) {
8+
// BEGIN SOLUTION
89
return i1 * i2;
10+
// END SOLUTION
11+
// STUB: return 0; // write code here
912
}

0 commit comments

Comments
 (0)