Inverse tests checks.
[genetic.git] / tests / gene / create.cpp
index 9bc970e727a2467ff9615cf02a6094d220fbde5d..d0739e320ff84ce8e98055a03ea011e65683e9fe 100644 (file)
@@ -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;
 }