Skip to content

Commit

Permalink
Update test/model.jl
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
sunxd3 and github-actions[bot] authored Dec 12, 2024
1 parent 500ddfe commit 798014d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,14 @@
@test model.transformed == deserialized.transformed
@test model.untransformed_param_length == deserialized.untransformed_param_length
@test model.transformed_param_length == deserialized.transformed_param_length
@test all(model.untransformed_var_lengths[k] == deserialized.untransformed_var_lengths[k] for k in keys(model.untransformed_var_lengths))
@test all(model.transformed_var_lengths[k] == deserialized.transformed_var_lengths[k] for k in keys(model.transformed_var_lengths))
@test all(
model.untransformed_var_lengths[k] == deserialized.untransformed_var_lengths[k]
for k in keys(model.untransformed_var_lengths)
)
@test all(
model.transformed_var_lengths[k] == deserialized.transformed_var_lengths[k] for
k in keys(model.transformed_var_lengths)
)
@test Set(model.parameters) == Set(deserialized.parameters)
# skip testing g
@test model.model_def === deserialized.model_def
Expand Down

0 comments on commit 798014d

Please sign in to comment.