예제 #1
0
 def test_center(self, stdPS):
     assert sf.describeEqType(np.array([1j, -1j]), stdPS) == [0, 2, 0, 0, 0]
예제 #2
0
 def test_passingTuple(self, stdPS):
     # rewrite as expecting some exception
     with pytest.raises(TypeError):
         sf.describeEqType([1 + 1j, 1 - 1j], stdPS) == [0, 0, 2, 0, 1]
예제 #3
0
 def test_almost_focus(self, stdPS):
     assert sf.describeEqType(np.array([-1e-15 + 1j, -1e-15 - 1j]),
                              stdPS) == [0, 2, 0, 0, 0]
예제 #4
0
 def test_unstable_focus(self, stdPS):
     assert sf.describeEqType(np.array([1 + 1j, 1 - 1j]),
                              stdPS) == [0, 0, 2, 0, 1]
예제 #5
0
 def test_unstable_node(self, stdPS):
     assert sf.describeEqType(np.array([+1, +1]), stdPS) == [0, 0, 2, 0, 0]
예제 #6
0
 def test_stable_focus(self, stdPS):
     assert sf.describeEqType(np.array([-1 + 1j, -1 - 1j]),
                              stdPS) == [2, 0, 0, 1, 0]
예제 #7
0
 def test_stable_node(self, stdPS):
     assert sf.describeEqType(np.array([-1, -1]), stdPS) == [2, 0, 0, 0, 0]
예제 #8
0
 def test_saddle(self, stdPS):
     assert sf.describeEqType(np.array([-1, 1]), stdPS) == [1, 0, 1, 0, 0]