close Warning: Can't synchronize with repository "(default)" (The repository directory has changed, you should resynchronize the repository with: trac-admin $ENV repository resync '(default)'). Look in the Trac log for more information.

Changeset 831 for branches


Ignore:
Timestamp:
2015-06-09T08:11:12-07:00 (9 years ago)
Author:
Marek Rychlik
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/f4grobner/5am-tests.lisp

    r756 r831  
    146146  (is (string= (infix-print '(* x y) nil) "X*Y"))
    147147  (is (string= (infix-print '(* x (expt y 2)) nil) "X*(Y^2)")))
    148 
    149 (test infix
    150   "Infix parser"
    151148  (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)))))
    153154
    154155
Note: See TracChangeset for help on using the changeset viewer.