From: Rafał Długołęcki Date: Wed, 8 Apr 2015 17:54:24 +0000 (+0200) Subject: Fix BitGenerator test. X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=8073598d4f17151be4493880517c30dc416d34f9;p=genetic.git Fix BitGenerator test. --- diff --git a/tests/generator/bitGenerator/breed.cpp b/tests/generator/bitGenerator/breed.cpp index d6ec7c3..c1a596a 100644 --- a/tests/generator/bitGenerator/breed.cpp +++ b/tests/generator/bitGenerator/breed.cpp @@ -35,6 +35,7 @@ int main() { if ((generation[i][j].get() != 0) && (generation[i][j].get() != 1)) { cout << "Chromosome breeded by BitGenerator does not have bit Genes\n"; + return 1; } } }