1
0
Fork 0
mirror of https://github.com/MillironX/beefblup.git synced 2024-12-22 09:08:16 +00:00

Add basic test for correct fixed effect matrix

This commit is contained in:
Thomas A. Christensen II 2021-06-19 20:11:25 -05:00
parent 181819db28
commit 141cf56b07
Signed by: millironx
GPG key ID: 139C07724802BC5D

View file

@ -1,6 +1,10 @@
using BeefBLUP using BeefBLUP
using DataFrames
using Test using Test
@testset "BeefBLUP.jl" begin @testset "BeefBLUP.jl" begin
# Write your tests here. # 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 end