dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
genetic.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Inverse tests checks.
[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 contained initial value\n";
15
return 0;
16
}
17
18
cout << "Gene does not contained initial value\n";
19
return 1;
20
}
21