1
0
Fork 0
mirror of https://github.com/MillironX/beefblup.git synced 2024-11-14 11:33:10 +00:00
beefblup/test/runtests.jl

11 lines
391 B
Julia
Raw Normal View History

2021-06-19 23:49:00 +00:00
using BeefBLUP
using DataFrames
2021-06-19 23:49:00 +00:00
using Test
@testset "BeefBLUP.jl" begin
# Write your tests here.
correctX = [1 1 0 0; 1 1 0 1; 1 0 1 0; 1 0 1 1; 1 0 1 0; 1 0 1 1; 1 0 0 0]
fixedfx = DataFrame(year = [1990, 1990, 1991, 1991, 1991, 1991, 1992], sex = ["male", "female", "male", "female", "male", "female", "male"])
@test BeefBLUP.fixedeffectmatrix(fixedfx)[1] == correctX
end