-
Notifications
You must be signed in to change notification settings - Fork 22
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
[wanivi] Adding tests #14
base: main
Are you sure you want to change the base?
Conversation
solver.initialize_domain(w=10.0, h=10.0, dx=0.5, dy=0.5) | ||
solver.initialize_physical_parameters(d=1.0, T_cold=300.0, T_hot=700.0) |
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.
A unit test should only have the call of the function that is being tested. The necessary variables should be set manually.
solver.initialize_domain(w=10.0, h=10.0, dx=1.0, dy=1.0) | ||
solver.initialize_physical_parameters(d=1.0, T_cold=300.0, T_hot=700.0) | ||
u = solver.set_initial_condition() |
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.
Same as above.
self.solver.initialize_domain(w=10.0, h=10.0, dx=1.0, dy=1.0) | ||
self.solver.T_cold = 300.0 | ||
self.solver.T_hot = 700.0 | ||
|
||
u = self.solver.set_initial_condition() |
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.
Same as above.
No description provided.