@@ -139,35 +139,32 @@ using Base.Test
139139
140140 method = StoufferCombination
141141
142- # `WeightVec` and `weights` are the same
143- @test WeightVec (w3) ≡ weights (w3)
144-
145142 ref = ref1[method]
146143 @test isapprox ( combine (p1, ones (p1), method ()), ref, atol = 1e-8 )
147- @test isapprox ( combine (p1, weights (ones (p1)), method ()), ref, atol = 1e-8 )
148- @test isapprox ( combine (PValues (p1), weights (ones (p1)), method ()), ref, atol = 1e-8 )
144+ @test isapprox ( combine (p1, Weights (ones (p1)), method ()), ref, atol = 1e-8 )
145+ @test isapprox ( combine (PValues (p1), Weights (ones (p1)), method ()), ref, atol = 1e-8 )
149146
150147 ref = ref2[method]
151148 @test isapprox ( combine (p2, ones (p2), method ()), ref, atol = 1e-8 )
152- @test isapprox ( combine (p2, weights (ones (p2)), method ()), ref, atol = 1e-8 )
153- @test isapprox ( combine (PValues (p2), weights (ones (p2)), method ()), ref, atol = 1e-8 )
149+ @test isapprox ( combine (p2, Weights (ones (p2)), method ()), ref, atol = 1e-8 )
150+ @test isapprox ( combine (PValues (p2), Weights (ones (p2)), method ()), ref, atol = 1e-8 )
154151
155152 ref = ref3[method]
156153 w3norm = w3 ./ sum (w3)
157154 # unnormalised weights
158155 @test isapprox ( combine (p3, w3, method ()), ref, atol = 1e-8 )
159- @test isapprox ( combine (p3, weights (w3), method ()), ref, atol = 1e-8 )
156+ @test isapprox ( combine (p3, Weights (w3), method ()), ref, atol = 1e-8 )
160157 # normalised weights
161158 @test isapprox ( combine (p3, w3norm, method ()), ref, atol = 1e-8 )
162- @test isapprox ( combine (p3, weights (w3norm), method ()), ref, atol = 1e-8 )
159+ @test isapprox ( combine (p3, Weights (w3norm), method ()), ref, atol = 1e-8 )
163160
164161 @test_throws DomainError combine (p1_invalid, ones (p1_invalid), method ())
165- @test_throws DomainError combine (p1_invalid, weights (ones (p1_invalid)), method ())
162+ @test_throws DomainError combine (p1_invalid, Weights (ones (p1_invalid)), method ())
166163 @test_throws DomainError combine (p2_invalid, ones (p2_invalid), method ())
167- @test_throws DomainError combine (p2_invalid, weights (ones (p2_invalid)), method ())
164+ @test_throws DomainError combine (p2_invalid, Weights (ones (p2_invalid)), method ())
168165
169166 @test combine (p_single, ones (p_single), method ()) == p_single[1 ]
170- @test combine (p_single, weights (ones (p_single)), method ()) == p_single[1 ]
167+ @test combine (p_single, Weights (ones (p_single)), method ()) == p_single[1 ]
171168
172169 end
173170
0 commit comments