Newer
Older
zweic / tests / 4 / term-binop.zwei
@ajaggi ajaggi on 26 Dec 2005 406 bytes Added some test cases
  1. // Binop
  2. class BinOpTest {
  3. Null foo() {
  4. Int x1 = 2;
  5. Int x2 = 3;
  6. Null z = null;
  7. k + x2; // 1/4 failure of clause 1 (nonexistent ident)
  8. x1 + l; // 2/4 failure of clause 2 (nonexistent ident)
  9. z + x2; // 3/4 failure of clause 1 (type of ident not Int)
  10. x1 + z; // 4/4 failure of clause 2 (type of ident not Int)
  11. x1 + x2; // success
  12. }
  13. }
  14.  
  15. 1