Skip to content

Conversation

@Raphael-Tresor
Copy link
Contributor

@Raphael-Tresor Raphael-Tresor commented Oct 22, 2024

  • Most of the tests were actually testing nothing because the first assertion of the isproper function was to test the absence of the last argument in the call and most of the test had a last argument
  • The function isproper itself had an assertion that was always true independently of the input of MatrixDirichlet

close #213


for space in (MeanParametersSpace(), NaturalParametersSpace())
@test !isproper(space, MatrixDirichlet, [Inf Inf; Inf 1.0], 1.0)
@test !isproper(space, MatrixDirichlet, [Inf Inf; Inf 1.0])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you changing this test? Just to see if the nothing condition hits?

Copy link
Contributor Author

@Raphael-Tresor Raphael-Tresor Oct 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I am not wrong, the noting condition will always hit if we add a fourth argument in the function call. So almost all the tests used to check only that. Right?

@wouterwln wouterwln merged commit 4ac105d into main Oct 23, 2024
@wouterwln wouterwln deleted the DirichletTensor branch October 23, 2024 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix Bugs on isproper of MatrixDirichlet

3 participants