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
Fix NaN occuring in simulations. #3
Conversation
botched test for 0 denominators.
Trapezoidal and Free Form FinSets.
|
||
|
||
@Test | ||
public void testCGComputation() throws Exception { |
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.
Please split these up into separate test cases. There's no reason to have then in one method, as they're clearly separate. E.g. testCGTriangularFin, testCGRectangularFin etc. The test case name should also explain what the test contains, it's hard to deduce from the numbers themselves.
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.
Agreed - will do.
On 10/6/2012 9:15 AM, plaa wrote:
In core/test/net/sf/openrocket/rocketcomponent/FinSetTest.java:
import net.sf.openrocket.util.LineStyle;
import net.sf.openrocket.util.BaseTestCase.BaseTestCase;import org.junit.Test;
public class FinSetTest extends BaseTestCase {
- @test
- public void testCGComputation() throws Exception {
Please split these up into separate test cases. There's no reason to
have then in one method, as they're clearly separate. E.g.
testCGTriangularFin, testCGRectangularFin etc. The test case name
should also explain what the test contains, it's hard to deduce from
the numbers themselves.—
Reply to this email directly or view it on GitHub
https://github.com/plaa/openrocket/pull/3/files#r1779419.
Fixed Simulation Id loading (and other bugfixes).
[fix] fixed deprecated method reflection references.
[fix] Restores 3d Views to PR #556 -- Java 11 upgrade
Fix NaN occurring in computation of CGx and CGy of fin sets due to botched test for 0 denominators.