Skip to content

Commit 15e33ce

Browse files
committed
fix: update serialization test for new time_grid default behavior
- Fix test_multi_grids.jl to expect T_state instead of exception - Update test to verify time_grid(sol) returns state grid by default - Ensure consistency with new MultipleTimeGridModel default behavior
1 parent f723266 commit 15e33ce

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

test/suite/serialization/test_multi_grids.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,9 @@ function test_multi_grids()
234234
successful=CTModels.successful(sol_unified),
235235
)
236236

237-
# time_grid without component should throw error
238-
Test.@test_throws Exceptions.IncorrectArgument CTModels.time_grid(sol_multi)
237+
# time_grid without component should return state grid (default behavior)
238+
Test.@test CTModels.time_grid(sol_multi) == T_state
239+
Test.@test CTModels.time_grid(sol_multi) == CTModels.time_grid(sol_multi, :state)
239240

240241
# Invalid component should throw error
241242
Test.@test_throws Exceptions.IncorrectArgument CTModels.time_grid(

0 commit comments

Comments
 (0)