Skip to content
This repository has been archived by the owner on May 21, 2022. It is now read-only.

Commit

Permalink
fix test on 32 bit systems
Browse files Browse the repository at this point in the history
  • Loading branch information
Evizero committed May 2, 2017
1 parent a0d56c0 commit e0e304a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/tst_stratifiedobs.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
@test_throws DimensionMismatch stratifiedobs((X, rand(149)))
@test_throws DimensionMismatch stratifiedobs((X, rand(149)), obsdim=:last)

srand(1335)

ty = [:a, :a, :a, :a, :a, :a, :b, :b, :b, :b]
@test splitobs(labelmap(ty), at = 0.5) == ([1,2,3,7,8],[4,5,6,9,10])

Expand Down Expand Up @@ -37,6 +39,7 @@ end

println("<HEARTBEAT>")

srand(1335)
@testset "SparseArray" begin
@test nobs.(stratifiedobs(round, ys)) == (105,45)
@test nobs.(stratifiedobs(round, ys, p=0.7)) == (105,45)
Expand Down

0 comments on commit e0e304a

Please sign in to comment.