Skip to content

Commit

Permalink
fix: File replacing genes with genomes
Browse files Browse the repository at this point in the history
  • Loading branch information
AsPJT committed May 22, 2024
1 parent e2d4a8d commit 9502fcc
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion Library/PAX_SAPIENTICA/Simulation/SettlementAgent.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <random>
#include <stdexcept>

#include <PAX_SAPIENTICA/Simulation/Gene.hpp>
#include <PAX_SAPIENTICA/Simulation/Genome.hpp>
#include <PAX_SAPIENTICA/Logger.hpp>
#include <PAX_SAPIENTICA/Simulation/Environment.hpp>
#include <PAX_SAPIENTICA/Simulation/Object.hpp>
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#include <PAX_SAPIENTICA/Simulation/Genome.hpp>

int main(){}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include <gtest/gtest.h>
#include <gtest/gtest.h>

#include <PAX_SAPIENTICA/Simulation/Gene.hpp>
#include <PAX_SAPIENTICA/Simulation/Genome.hpp>
#include <PAX_SAPIENTICA/Simulation/SimulationConst.hpp>

TEST (GeneUnitTest, getAndSet) {
TEST (GenomeUnitTest, getAndSet) {
paxs::Genome genome;
genome.setMtDNA(1);
EXPECT_EQ(genome.getMtDNA(), 1);
Expand All @@ -14,7 +14,7 @@ TEST (GeneUnitTest, getAndSet) {
EXPECT_EQ(genome.cgetChromosome(), chromosome);
}

TEST (GeneUnitTest, generateRandom) {
TEST (GenomeUnitTest, generateRandom) {
paxs::Genome genome = paxs::Genome::generateRandom();
for (std::uint_least8_t i = 0; i < paxs::Chromosome::chromosome_length; ++i) {
EXPECT_GE(genome.cgetChromosome().get(i), 0);
Expand All @@ -26,7 +26,7 @@ TEST (GeneUnitTest, generateRandom) {
EXPECT_LE(genome.getYDNA(), std::numeric_limits<std::uint_least8_t>::max());
}

TEST (GeneUnitTest, generateFromParents) {
TEST (GenomeUnitTest, generateFromParents) {
paxs::Genome mother;
paxs::Genome father;
for (std::uint_least8_t i = 0; i < paxs::Chromosome::chromosome_length; ++i) {
Expand Down

0 comments on commit 9502fcc

Please sign in to comment.