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