1 package net.sf.openrocket.simulation.customexpression;
5 import static org.junit.Assert.*;
6 import net.sf.openrocket.document.OpenRocketDocument;
7 import net.sf.openrocket.rocketcomponent.Rocket;
9 public class TestExpressions {
12 public void testExpressions() {
13 // TODO Auto-generated constructor stub
15 OpenRocketDocument doc = new OpenRocketDocument(new Rocket());
17 //CustomExpression exp = new CustomExpression(doc, "Kinetic energy", "Ek", "J", ".5*m*Vt^2");
19 CustomExpression exp = new CustomExpression(doc, "Average mass", "Mavg", "kg", "mean(m[0:t])");
20 System.out.println( exp.getExpressionString() );