Newer
Older
zweic / tests / 4 / term-unop.zwei
@ajaggi ajaggi on 26 Dec 2005 262 bytes Added some test cases
  1. // UnOp
  2. class UnOpTest {
  3. Null foo() {
  4. Int x = 2;
  5. Null z = null;
  6. -y; // 1/2 failure of clause 1 (nonexistent ident)
  7. -z; // 2/2 failure of clause 1 (ident not of type Int)
  8. -x; // success
  9. !x; // success
  10. }
  11. }
  12.  
  13. 1