Skip to content

Commit 31dcb21

Browse files
committed
Fixed tests for confidence intervals
1 parent c6f91b8 commit 31dcb21

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

test/test_inference.jl

+10-11
Original file line numberDiff line numberDiff line change
@@ -127,24 +127,23 @@ end
127127
end
128128

129129
@testset "Confidence Intervals" begin
130-
# Making sure a confidence interval has changed from infinity to a valid number
131-
@test isinf(lb1) == false && isinf(ub1) == false
132-
@test isinf(lb2) == false && isinf(ub2) == false
133-
@test isinf(lb3) == false && isinf(ub3) == false
134-
@test isinf(lb4) == false && isinf(ub4) == false
135-
@test isinf(lb6) == false && isinf(ub6) == false
136-
@test isinf(lb7) == false && isinf(ub7) == false
137-
@test isinf(lb8) == false && isinf(ub8) == false
130+
@test lb1 isa Real && ub1 isa Real
131+
@test lb2 isa Real && ub2 isa Real
132+
@test lb3 isa Real && ub3 isa Real
133+
@test lb4 isa Real && ub4 isa Real
134+
@test lb6 isa Real && ub6 isa Real
135+
@test lb7 isa Real && ub7 isa Real
136+
@test lb8 isa Real && ub8 isa Real
138137
end
139138

140139
@testset "All Quantities of Interest" begin
141-
@test isinf(lb11) == false && isinf(ub11) == false
140+
@test lb11 isa Real && ub11 isa Real
142141
@test 1 >= p11 >= 0
143142
@test stderr11 > 0
144-
@test isinf(lb44) == false && isinf(ub44) == false
143+
@test lb44 isa Real && ub44 isa Real
145144
@test 1 >= p44 >= 0
146145
@test stderr44 > 0
147-
@test isinf(lb66) == false && isinf(ub66) == false
146+
@test lb66 isa Real && ub66 isa Real
148147
@test 1 >= p66 >= 0
149148
@test stderr66 > 0
150149
end

0 commit comments

Comments
 (0)