Esempio n. 1
0
 def test_center(self, stdPS):
     assert sf.describeEqType(np.array([1j, -1j]), stdPS) == [0, 2, 0, 0, 0]
Esempio n. 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]
Esempio n. 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]
Esempio n. 4
0
 def test_unstable_focus(self, stdPS):
     assert sf.describeEqType(np.array([1 + 1j, 1 - 1j]),
                              stdPS) == [0, 0, 2, 0, 1]
Esempio n. 5
0
 def test_unstable_node(self, stdPS):
     assert sf.describeEqType(np.array([+1, +1]), stdPS) == [0, 0, 2, 0, 0]
Esempio n. 6
0
 def test_stable_focus(self, stdPS):
     assert sf.describeEqType(np.array([-1 + 1j, -1 - 1j]),
                              stdPS) == [2, 0, 0, 1, 0]
Esempio n. 7
0
 def test_stable_node(self, stdPS):
     assert sf.describeEqType(np.array([-1, -1]), stdPS) == [2, 0, 0, 0, 0]
Esempio n. 8
0
 def test_saddle(self, stdPS):
     assert sf.describeEqType(np.array([-1, 1]), stdPS) == [1, 0, 1, 0, 0]