pre_marking3/postfix_test4.scala
changeset 386 e2170c91a9f2
parent 384 6e1237691307
equal deleted inserted replaced
385:44383203970f 386:e2170c91a9f2
     1 import CW9b._
     1 import CW8b._
     2 
     2 
     3 
     3 
     4 assert(compute(syard(split("3 + 4 * ( 2 - 1 )"))) == 7)
     4 assert(compute(syard(split("3 + 4 * ( 2 - 1 )"))) == 7)
     5 assert(compute(syard(split("10 + 12 * 33"))) == 406)
     5 assert(compute(syard(split("10 + 12 * 33"))) == 406)
     6 assert(compute(syard(split("( 5 + 7 ) * 2"))) == 24)
     6 assert(compute(syard(split("( 5 + 7 ) * 2"))) == 24)