gene = gene2;
- if (gene.get() != 20) {
- cout << "Gene does not copied value\n";
+ if (gene.get() == 20) {
+ cout << "Gene copied value from second gene\n";
+ return 0;
}
- cout << "Gene copied value from second gene\n";
+ cout << "Gene does not copied value\n";
- return 0;
+ return 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;
}