Skip to content

Commit 869d699

Browse files
committed
Fix up and modularise tests
1 parent 18d0488 commit 869d699

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

test/ability_estimator_2d.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ mle_mode_2d = ModeAbilityEstimator(lh_est_2d, optimizer_2d)
6767
# Item closer to the current estimate (1, 1)
6868
close_item = 5
6969
# Item further from the current estimate
70-
far_item = 6
70+
far_item = 7
7171

7272
close_info = compute_criterion(
7373
information_criterion, tracked_responses_2d, close_item)

test/dummy.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const ability_estimators_1d = [
3434
((:integrator,),
3535
(stuff) -> MeanAbilityEstimator(LikelihoodAbilityEstimator(), stuff.integrator)),
3636
((:optimizer,),
37-
(stuff) -> ModeAbilityEstimator(LikelihoodAbilityEstimator(), stuff.optimizer))
37+
(stuff) -> ModeAbilityEstimator(SafeLikelihoodAbilityEstimator(), stuff.optimizer))
3838
]
3939
const criteria_1d = [
4040
((:integrator, :est),

test/smoke.jl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
#(item_bank, abilities, responses) = dummy_full(Random.default_rng(42), SimpleItemBankSpec(StdModel4PL(), VectorContinuousDomain(), BooleanResponse()), 2; num_questions=100, num_testees=3)
22

3+
using Random
4+
using ComputerAdaptiveTesting
5+
using ComputerAdaptiveTesting.Aggregators
6+
using ComputerAdaptiveTesting.TerminationConditions
7+
using ComputerAdaptiveTesting.Sim
8+
using FittedItemBanks
9+
using FittedItemBanks.DummyData: dummy_full, SimpleItemBankSpec, StdModel3PL,
10+
VectorContinuousDomain, BooleanResponse, std_normal
11+
12+
include("./dummy.jl")
13+
using .Dummy
14+
315
@testset "Smoke test 1d" begin
416
(item_bank, abilities, true_responses) = dummy_full(
517
Random.default_rng(42),

0 commit comments

Comments
 (0)