File:  [CENS] / python / pyGiNaC / test / symbol.tst
Revision 1.3: download - view: text, annotated - select for diffs - revision graph
Thu Apr 5 17:22:15 2001 UTC (16 years, 7 months ago) by pearu
Branches: MAIN
CVS tags: HEAD
wrapped flags

#
# $Id: symbol.tst,v 1.3 2001-04-05 17:22:15 pearu Exp $
# Pearu Peterson

_startup = __import__('__startup__')
module = __import__('ginac',globals(),locals(),['ginac'])

isinstance(symbol(),symbol):: 1
isinstance(symbol(symbol()),symbol):: 1
isinstance(symbol("foo"),symbol):: 1
isinstance(symbol(),ex):: 0

symbol("a") :: a
`symbol("a") :: symbol('a')

my_symbol = symbol("a")

my_symbol.getname() :: a
my_symbol.setname("b") :: None
my_symbol.getname() :: b

my_symbol.nops() :: 0
my_symbol.op(0) :: IndexError,basic.opindexoutofrange
my_symbol.info() :: 0

my_symbol.assign(ex(4)) :: None
my_symbol :: b
#my_symbol.expand(0) :: b
my_symbol.unassign() :: None

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>