diff --git a/test/runtests.jl b/test/runtests.jl index b369a86..6520be7 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,5 +1,9 @@ using LearningStrategies using Base.Test -# write your own tests here -@test 1 == 2 +model = nothing +ii = 0 +strat = make_learner(MaxIter(20), IterFunction((m,i) -> (global ii; ii=i))) + +learn!(model, strat) +@test ii == 20