File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1398,6 +1398,10 @@ cdef class Constant(Expr):
13981398 def is_number (self ):
13991399 return True
14001400
1401+ @property
1402+ def is_Atom (self ):
1403+ return True
1404+
14011405 def _sympy_ (self ):
14021406 raise Exception (" Unknown Constant" )
14031407
Original file line number Diff line number Diff line change @@ -97,6 +97,7 @@ def test_is_conditions():
9797 assert i .is_complex
9898
9999 assert pi .is_number
100+ assert pi .is_Atom
100101
101102
102103def test_perfect_power ():
Original file line number Diff line number Diff line change @@ -157,6 +157,9 @@ def test_dummy():
157157 xdummy1 = Dummy ('x' )
158158 xdummy2 = Dummy ('x' )
159159 assert xdummy1 .dummy_index != xdummy2 .dummy_index # maybe test using "less than"?
160+ assert xdummy1 .name == 'x'
161+ assert xdummy2 .name == 'x'
162+
160163
161164 assert x1 == x2
162165 assert x1 != xdummy1
You can’t perform that action at this time.
0 commit comments