X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=tests%2Fgene%2Fcreate.cpp;fp=tests%2Fgene%2Fcreate.cpp;h=d0739e320ff84ce8e98055a03ea011e65683e9fe;hb=d8fcb8eda6221b8de8ee2a8d6666fc3a5a77a80f;hp=9bc970e727a2467ff9615cf02a6094d220fbde5d;hpb=91a0dc691efff2a35f9d2089be485117b426a04c;p=genetic.git diff --git a/tests/gene/create.cpp b/tests/gene/create.cpp index 9bc970e..d0739e3 100644 --- a/tests/gene/create.cpp +++ b/tests/gene/create.cpp @@ -10,12 +10,12 @@ int main() { _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; }