diff options
Diffstat (limited to 'test/pygmathlib_test_formula.py')
-rw-r--r-- | test/pygmathlib_test_formula.py | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/test/pygmathlib_test_formula.py b/test/pygmathlib_test_formula.py index 598d240..fb550bd 100644 --- a/test/pygmathlib_test_formula.py +++ b/test/pygmathlib_test_formula.py @@ -33,19 +33,19 @@ def make_test_formula (context): symbolx = context.Atom ("x") symboly = context.Atom ("y") symboli = context.Atom ("i") - symbolalpha = context.Symbol (type = "alpha") - symbolinfty = context.Symbol (type = "infty") + symbolalpha = context.Symbol (symtype = "alpha") + symbolinfty = context.Symbol (symtype = "infty") - sin = context.Symbol (type = "fun") + sin = context.Symbol (symtype = "fun") sin.value = "sin" sin.set_child (symbolx, 0) - frac = context.Symbol (type = "frac") + frac = context.Symbol (symtype = "frac") frac.set_child (sin, 0) frac.set_child (symbolx.copy (), 1) - app = context.Symbol (type = "approach") + app = context.Symbol (symtype = "approach") app.set_child (symbolx.copy (), 0) app.set_child (symbol0, 1) - lim = context.Symbol (type = "lim") + lim = context.Symbol (symtype = "lim") lim.set_child (app, 0) lim.set_child (frac, 1) equal = context.Symbol ("2op") @@ -53,43 +53,43 @@ def make_test_formula (context): equal.set_child (lim, 0) equal.set_child (symbol1, 1) - super = context.Symbol (type = "super") + super = context.Symbol (symtype = "super") super.set_child (symbolx.copy (), 0) super.set_child (symbol2, 1) - sub = context.Symbol (type = "sub") + sub = context.Symbol (symtype = "sub") sub.set_child (symboly, 0) sub.set_child (symbolalpha, 1) - add = context.Symbol (type = "2op") + add = context.Symbol (symtype = "2op") add.value = "+" add.set_child (super, 0) add.set_child (sub, 1) - lparen = context.Symbol (type = "lparen") + lparen = context.Symbol (symtype = "lparen") lparen.value = "(" - rparen = context.Symbol (type = "rparen") + rparen = context.Symbol (symtype = "rparen") rparen.value = ")" - paren = context.Symbol (type = "paren") + paren = context.Symbol (symtype = "paren") paren.set_child (lparen, 0) paren.set_child (add, 1) paren.set_child (rparen, 2) - fun = context.Symbol (type = "fun") + fun = context.Symbol (symtype = "fun") fun.value = "sin" fun.set_child (paren, 0) - frac = context.Symbol (type = "frac") + frac = context.Symbol (symtype = "frac") frac.set_child (fun, 0) eq = equal.copy () eq.set_child (symboli, 0) eq.set_child (symbol0.copy (), 1) lparen = lparen.copy () rparen = rparen.copy () - paren = context.Symbol (type = "paren") + paren = context.Symbol (symtype = "paren") paren.set_child (lparen, 0) paren.set_child (frac, 1) paren.set_child (rparen, 2) - integral = context.Symbol (type = "integral") + integral = context.Symbol (symtype = "integral") integral.set_child (symbol0.copy (), 0) integral.set_child (symbol1.copy (), 1) integral.set_child (paren, 2) - product = context.Symbol (type = "product") + product = context.Symbol (symtype = "product") product.set_child (eq, 0) product.set_child (symbol10, 1) product.set_child (integral, 2) @@ -97,7 +97,7 @@ def make_test_formula (context): equal2.set_child (product, 0) equal2.set_child (symbolinfty, 1) - comma = context.Symbol (type = "2op") + comma = context.Symbol (symtype = "2op") comma.value = ", " comma.set_child (equal, 0) comma.set_child (equal2, 1) |