1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 | #include "GoldbachTester.h"
#include "GoldbachWorker.h"
void testCalculateStart()
{
Q_ASSERT( GoldbachWorker::calculateStart(21, 7, 0, 2) == 2 );
Q_ASSERT( GoldbachWorker::calculateStart(21, 7, 1, 2) == 5 );
Q_ASSERT( GoldbachWorker::calculateStart(21, 7, 4, 2) == 14 );
Q_ASSERT( GoldbachWorker::calculateStart(21, 7, 5, 2) == 17 );
Q_ASSERT( GoldbachWorker::calculateStart(21, 7, 6, 2) == 19 );
Q_ASSERT( GoldbachWorker::calculateStart(21, 7, 7, 2) == 21 );
}
#include <iostream>
int main(int argc, char* argv[])
{
// for ( int index = 0; index < argc; ++index )
// std::cout << index << ": {" << argv[index] << "}\n";
// testCalculateStart();
GoldbachTester application(argc, argv);
return application.run();
}
|