X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=tests%2Fgene%2Fcreate.cpp;fp=tests%2Fgene%2Fcreate.cpp;h=9bc970e727a2467ff9615cf02a6094d220fbde5d;hb=91a0dc691efff2a35f9d2089be485117b426a04c;hp=0000000000000000000000000000000000000000;hpb=5bdb3f61e9897d13c8b4a69dea6fbf492a7d0e94;p=genetic.git diff --git a/tests/gene/create.cpp b/tests/gene/create.cpp new file mode 100644 index 0000000..9bc970e --- /dev/null +++ b/tests/gene/create.cpp @@ -0,0 +1,21 @@ +#include + +#include "gene.h" + +using namespace std; +using namespace genetic; + +int main() { + typedef Gene _Gene; + + _Gene gene(1); + + if (gene.get() != 1) { + cout << "Gene does not contained initial value\n"; + return 1; + } + + cout << "Gene contained initial value\n"; + return 0; +} +