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
Added LinearRankSelection.
[genetic.git]
/
tests
/
gene
/
test1.cpp
1
#include <iostream>
2
#include <cassert>
3
4
#include "gene.h"
5
#include "chromosome.h"
6
7
using namespace std;
8
using namespace genetic;
9
10
int main() {
11
Gene<int> gene(1);
12
13
assert(gene.get() == 1);
14
cout << "Gene: " << gene.get() << " should be equal to: " << 1 << endl;
15
16
return 0;
17
}
18