@@ -24,7 +24,8 @@ Manopt.get_parameter(d::TestRecordParameterState, ::Val{:value}) = d.value
2424 dmp = DefaultManoptProblem (M, ManifoldGradientObjective (f, grad_f))
2525 a = RecordIteration ()
2626 @test repr (a) == " RecordIteration()"
27- @test Manopt. status_summary (a) == " :Iteration"
27+ @test Manopt. status_summary (a; context = :short ) == " :Iteration"
28+ @test Manopt. status_summary (a) == " A RecordAction to record the current iteration number"
2829 # constructors
2930 rs = RecordSolverState (gds, a)
3031 Manopt. set_parameter! (rs, :Record , RecordCost ())
@@ -85,7 +86,8 @@ Manopt.get_parameter(d::TestRecordParameterState, ::Val{:value}) = d.value
8586 @test_throws ErrorException RecordGroup (RecordAction[], Dict (:a => 1 ))
8687 @test_throws ErrorException RecordGroup (RecordAction[], Dict (:a => 0 ))
8788 b = RecordGroup ([RecordIteration (), RecordIteration ()], Dict (:It1 => 1 , :It2 => 2 ))
88- @test Manopt. status_summary (b) == " [ :Iteration, :Iteration ]"
89+ @test Manopt. status_summary (b; context = :short ) == " [:Iteration, :Iteration]"
90+ @test startswith (Manopt. status_summary (b), " A group of 2 RecordActions:\n " )
8991 @test repr (b) == " RecordGroup([RecordIteration(), RecordIteration()])"
9092 b (dmp, gds, 1 )
9193 b (dmp, gds, 2 )
@@ -102,7 +104,8 @@ Manopt.get_parameter(d::TestRecordParameterState, ::Val{:value}) = d.value
102104 @testset " RecordEvery" begin
103105 c = RecordEvery (a, 10 , true )
104106 @test repr (c) == " RecordEvery(RecordIteration(), 10, true)"
105- @test Manopt. status_summary (c) == " [RecordIteration(), 10]"
107+ @test Manopt. status_summary (c; context = :short ) == " [:Iteration, 10]"
108+ @test startswith (Manopt. status_summary (c), " A RecordAction that records every 10th iteration with\n " )
106109 c (dmp, gds, 0 )
107110 @test length (get_record (c)) === 0
108111 c (dmp, gds, 1 )
@@ -118,7 +121,7 @@ Manopt.get_parameter(d::TestRecordParameterState, ::Val{:value}) = d.value
118121 10 ,
119122 )
120123 @test repr (c2) == " RecordEvery($(repr (c2. record)) , 10, true)"
121- @test Manopt. status_summary (c2) == " [:Iteration, :Iteration, 10]"
124+ @test Manopt. status_summary (c2; context = :short ) == " [:Iteration, :Iteration, 10]"
122125 c2 (dmp, gds, 5 )
123126 c2 (dmp, gds, 10 )
124127 c2 (dmp, gds, 20 )
@@ -129,7 +132,8 @@ Manopt.get_parameter(d::TestRecordParameterState, ::Val{:value}) = d.value
129132 d = RecordChange ()
130133 sd = " RecordChange(; inverse_retraction_method=LogarithmicInverseRetraction())"
131134 @test repr (d) == sd
132- @test Manopt. status_summary (d) == " :Change"
135+ @test Manopt. status_summary (d; context = :short ) == " :Change"
136+ @test startswith (Manopt. status_summary (d), " A RecordAction to record the change of the iterate" )
133137 d (dmp, gds, 1 )
134138 @test d. recorded_values == [0.0 ] # no p0 -> assume p is the first iterate
135139 set_iterate! (gds, M, p + [1.0 , 0.0 ])
@@ -169,7 +173,8 @@ Manopt.get_parameter(d::TestRecordParameterState, ::Val{:value}) = d.value
169173 @testset " RecordIterate" begin
170174 set_iterate! (gds, M, p)
171175 f = RecordIterate (p)
172- @test Manopt. status_summary (f) == " :Iterate"
176+ @test Manopt. status_summary (f; context = :short ) == " :Iterate"
177+ @test Manopt. status_summary (f) == " A RecordAction to record the current iterate"
173178 @test repr (f) == " RecordIterate(Vector{Float64})"
174179 @test_throws ErrorException RecordIterate ()
175180 f (dmp, gds, 1 )
@@ -178,7 +183,8 @@ Manopt.get_parameter(d::TestRecordParameterState, ::Val{:value}) = d.value
178183 @testset " RecordCost" begin
179184 g = RecordCost ()
180185 @test repr (g) == " RecordCost()"
181- @test Manopt. status_summary (g) == " :Cost"
186+ @test Manopt. status_summary (g; context = :short ) == " :Cost"
187+ @test Manopt. status_summary (g) == " A RecordAction to record the cost value"
182188 g (dmp, gds, 1 )
183189 @test g. recorded_values == [0.0 ]
184190 gds. p = [3.0 , 2.0 ]
@@ -198,15 +204,17 @@ Manopt.get_parameter(d::TestRecordParameterState, ::Val{:value}) = d.value
198204 @testset " RecordSubsolver" begin
199205 rss = RecordSubsolver ()
200206 @test repr (rss) == " RecordSubsolver(; record=[:Iteration], record_type=Any)"
201- @test Manopt. status_summary (rss) == " :Subsolver"
207+ @test Manopt. status_summary (rss; context = :short ) == " :Subsolver"
208+ @test startswith (Manopt. status_summary (rss), " A RecordAction to record elements in from each subsolver" )
202209 epms = ExactPenaltyMethodState (M, dmp, rs)
203210 rss (dmp, epms, 1 )
204211 end
205212 @testset " RecordWhenActive" begin
206213 i = RecordIteration ()
207214 rwa = RecordWhenActive (i)
208215 @test repr (rwa) == " RecordWhenActive(RecordIteration(), true, true)"
209- @test Manopt. status_summary (rwa) == repr (rwa)
216+ @test Manopt. status_summary (rwa; context = :short ) == repr (rwa)
217+ @test startswith (Manopt. status_summary (rwa), " Record the following only, when active" )
210218 rwa (dmp, gds, 1 )
211219 @test length (get_record (rwa)) == 1
212220 rwa (dmp, gds, - 1 ) # Reset
0 commit comments