dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
genetic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean all doc files on make clean
[genetic.git]
/
tests
/
gene
/
create.cpp
diff --git
a/tests/gene/create.cpp
b/tests/gene/create.cpp
index 9bc970e727a2467ff9615cf02a6094d220fbde5d..d0739e320ff84ce8e98055a03ea011e65683e9fe 100644
(file)
--- a/
tests/gene/create.cpp
+++ b/
tests/gene/create.cpp
@@
-10,12
+10,12
@@
int main() {
_Gene gene(1);
_Gene gene(1);
- if (gene.get()
!
= 1) {
- cout << "Gene
does not
contained initial value\n";
- return
1
;
+ if (gene.get()
=
= 1) {
+ cout << "Gene contained initial value\n";
+ return
0
;
}
}
- cout << "Gene contained initial value\n";
- return
0
;
+ cout << "Gene
does not
contained initial value\n";
+ return
1
;
}
}