Changeset 831
- Timestamp:
- 2015-06-09T08:11:12-07:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/f4grobner/5am-tests.lisp
r756 r831 146 146 (is (string= (infix-print '(* x y) nil) "X*Y")) 147 147 (is (string= (infix-print '(* x (expt y 2)) nil) "X*(Y^2)"))) 148 149 (test infix150 "Infix parser"151 148 (is (equal '#I( x^2 + y^2 ) '(+ (expt x 2) (expt y 2)))) 152 (is (equal '#I( [ x, y ] ) '(:[ X Y)))) 149 (is (equal '#I( [ x, y ] ) '(:[ X Y))) 150 (is (equal '#I( x + y) '(+ x y))) 151 (is (equal '#I(x^3) '(expt x 3))) 152 (is (equal '#I(1+x^3) '(+ 1 (expt x 3)))) 153 (is (equal '#I(x*y^2) '(* x (expt y 2))))) 153 154 154 155
Note:
See TracChangeset
for help on using the changeset viewer.