Newer
Older
zweic / tests / four / term-unop.zwei
@glproj03 glproj03 on 28 Dec 2005 262 bytes wicked cool test file added: script.sh
// UnOp
class UnOpTest {
    Null foo() {
        Int x = 2;
        Null z = null;
        -y; // 1/2 failure of clause 1 (nonexistent ident)
        -z; // 2/2 failure of clause 1 (ident not of type Int)
        -x; // success
        !x; // success
    }
}

1