-
-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: added an edge case in ReactionSystem #1174
Conversation
Signed-off-by: sivasathyaseeelan <dnsiva.sathyaseelan.chy21@iitbhu.ac.in>
The test is well written, but I don't see how this tests something relevant to the package? I.e. if I understand it correct, what we want to test is that if the user updates the I am mostly surprised that the user can update Is this looking at a specific line in the code which we do not have coverage on? In that case we could have al ook at it to see if there is a better way to cover it. Even if we do not end up using this, still thanks for your effort with the PR! |
|
||
# Define parameters and species including forbidden symbols | ||
@parameters p1 forbidden1 | ||
@species S1 forbidden2(t) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be S(t)
, species should always depend on an independent variable.
I thought of creating some random forbidden symbols. I will remove it and replace it with any exiting forbidden symbol |
Signed-off-by: sivasathyaseeelan <dnsiva.sathyaseelan.chy21@iitbhu.ac.in>
sounds good |
Also, you might want to use |
Signed-off-by: sivasathyaseeelan <dnsiva.sathyaseelan.chy21@iitbhu.ac.in>
Looking closer, this seems like a repeat of # System using a forbidden symbol.
@test_throws Exception rs = ReactionSystem([Reaction(Γ, [X1], [])], t; named = :rs) from the test block just above yours. However, there is an error in that test that means that that specific error is not hit ( |
I will fix the bug in previous test and remove the new test set! |
Signed-off-by: sivasathyaseeelan <dnsiva.sathyaseelan.chy21@iitbhu.ac.in>
Thanks, will merge once everything passes. |
I have added an edge cases to test ReactionSystem which were not tested before.
Checklist
contributor guidelines, in particular the SciML Style Guide and
COLPRAC.
Additional context
Add any other context about the problem here.