Inheritance of features is now working

This commit is contained in:
Simon Brooke 2024-05-02 16:58:51 +01:00
parent 41bfb23a2d
commit ba9ecd91a2
6 changed files with 149 additions and 33 deletions

View file

@ -0,0 +1,10 @@
(ns simulated-genetics.core-test
(:require [clojure.test :refer :all]
[cc.journeyman.simulated-genetics.genome :refer :all]))
(deftest clone-test
(testing "All bits should come from one or other parent. If parent genomes
are identical, the offspring is a clone."
(let [g (rand-genome)
c (create-genome g g)]
(is (= c g)))))