Skip to content

Commit

Permalink
modify tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mjburton committed Mar 5, 2018
1 parent ca4d658 commit 875e650
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions gpkitmodels/GP/aircraft/prop/prop_test.py
@@ -1,4 +1,6 @@
" propelle tests "
from propeller import Propeller
from qprop import QProp
from gpkitmodels.GP.aircraft.wing.wing_test import FlightState

def eta_test():
Expand All @@ -7,12 +9,21 @@ def eta_test():
p = Propeller(fs)
p.substitutions[p.T] = 100
p.cost = 1/p.eta
p.solve()

def qprop_test():

fs = FlightState()
p = QProp(fs)
p.substitutions[p.T] = 100
p.cost = 1/p.eta
sol = p.solve()
print sol.table()

def test():
"tests"
eta_test()
qprop_test()

if __name__ == "__main__":
test()
Expand Down

0 comments on commit 875e650

Please sign in to comment.