Skip to content

Commit

Permalink
Fixed test for fake_treatments
Browse files Browse the repository at this point in the history
  • Loading branch information
dscolby committed Oct 30, 2023
1 parent 2c3841b commit bb08388
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test_model_validation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,11 @@ end
for vec in jenks(collect(1:10), 5)
@test !isempty(vec)
end
setdiff
end

@testset "Counterfactual Consistency" begin
@test length(fake_treatments(test_outcomes)) == length(test_outcomes)
@test sort(unique(fake_treatments(test_outcomes))) == [1, 2, 3, 4]
@test setdiff(Set(sort(unique(fake_treatments(test_outcomes)))), [1, 2, 3, 4]) == Set()
@test counterfactualconsistency(g_computer) isa Real
end

0 comments on commit bb08388

Please sign in to comment.