9bc970e727a2467ff9615cf02a6094d220fbde5d
[genetic.git] / tests / gene / create.cpp
1 #include <iostream>
2
3 #include "gene.h"
4
5 using namespace std;
6 using namespace genetic;
7
8 int main() {
9     typedef Gene<int> _Gene;
10
11     _Gene gene(1);
12
13     if (gene.get() != 1) {
14         cout << "Gene does not contained initial value\n";
15         return 1;
16     }
17
18     cout << "Gene contained initial value\n";
19     return 0;
20 }
21