Ignore:
Timestamp:
May 3, 2014, 6:38:40 PM (11 years ago)
Author:
gobi
Message:

expressions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sizechecking/branches/macs/tests/OpsTest.hs

    r22 r24  
    99 
    1010test1 :: (LOps l) => l Int 
    11 test1 = app (lam $ \x -> const 3 + x) (const 2) 
     11test1 = app (lam $ \x -> lit 3 + x) (lit 2) 
    1212 
    1313test2 :: (LOps l) => l Int 
    14 test2 = app (lam $ \x -> const 3 * x) (const 2) 
     14test2 = app (lam $ \x -> lit 3 * x) (lit 2) 
    1515 
    1616test3 :: (LOps l) => l Int 
    17 test3 = app (lam $ \x -> const 2 * x + const 1) (const 5 - const 2) 
     17test3 = app (lam $ \x -> lit 2 * x + lit 1) (lit 5 - lit 2) 
    1818 
    1919 
Note: See TracChangeset for help on using the changeset viewer.