コード例 #1
0
ファイル: poly_test.py プロジェクト: clinssen/pygsl
 def test_cubic_double(self):
     test = 0
     try:
         tmp, r1, r2, r3 = poly.solve_cubic(6,11,6)
         test = 1
     finally:
         if test == 0:
             print(poly.solve_cubic(6,11,6))
     assert(tmp == 3)
     assert(r1 == -2 or r2 == -2 or r3 == -2)
     assert(r1 == -1 or r2 == -1 or r3 == -1)
     assert(r1 == -3 or r2 == -3 or r3 == -3)
コード例 #2
0
ファイル: poly_test.py プロジェクト: juhnowski/FishingRod
 def test_cubic_double(self):
     test = 0
     try:
         tmp, r1, r2, r3 = poly.solve_cubic(6,11,6)
         test = 1
     finally:
         if test == 0:
             print poly.solve_cubic(6,11,6)                
     assert(tmp == 3)
     assert(r1 == -2 or r2 == -2 or r3 == -2)
     assert(r1 == -1 or r2 == -1 or r3 == -1)
     assert(r1 == -3 or r2 == -3 or r3 == -3)
コード例 #3
0
ファイル: poly.py プロジェクト: juhnowski/FishingRod
def test_cubic_double():    
    tmp, r1, r2, r3 = poly.solve_cubic(6,11,6)
コード例 #4
0
def test_cubic_double():
    tmp, r1, r2, r3 = poly.solve_cubic(6, 11, 6)