Fix Parameter test. Separate Test class.
[command.git] / tests / parameter / is_descriptive.cpp
1 #include <cstring>
2 #include <iostream>
3
4 #include "TestParameter.h"
5
6 using namespace std;
7 using namespace command;
8
9 #define STRING "1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
10
11 int main() {
12     TestParameter parameter(STRING);
13
14     int cmp = strcmp(parameter.describe().c_str(), STRING);
15
16     if (cmp == 0) {
17         cout << "Parameter class is descriptive\n";
18         return 0;
19     }
20
21     cout << "Parameter class changes provided description so is not descriptive\n";
22
23     return 1;
24 }
25