Inheritance of features is now working
This commit is contained in:
parent
41bfb23a2d
commit
ba9ecd91a2
6 changed files with 149 additions and 33 deletions
10
test/simulated_genetics/core_test.clj
Normal file
10
test/simulated_genetics/core_test.clj
Normal 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)))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue