From: Rudolf Polzer Date: Mon, 26 Aug 2013 10:54:51 +0000 (+0200) Subject: test for &~= vector X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5aaa601f56e51aab49940d5422fb93f1b09a1841;p=xonotic%2Fgmqcc.git test for &~= vector --- diff --git a/tests/bitnot.qc b/tests/bitnot.qc index 75834ba..17ba6cd 100644 --- a/tests/bitnot.qc +++ b/tests/bitnot.qc @@ -4,14 +4,17 @@ void main() { float c; c = 1; float d; d = 1; vector e; e = '1 1 1'; + vector f; f = '1 1 1'; a &~= 1; // 0 b &= ~1; // 0 c &= ~d; // 0 + f &~= e; // '0 0 0' e &= ~e; // '0 0 0' print("a: ", ftos(a), "\nb: ", ftos(b), "\nc: ", ftos(c), "\n"); print("e: ", vtos(e), "\n"); + print("f: ", vtos(f), "\n"); } diff --git a/tests/bitnot.tmpl b/tests/bitnot.tmpl index 132b040..b6a1eaa 100644 --- a/tests/bitnot.tmpl +++ b/tests/bitnot.tmpl @@ -8,3 +8,4 @@ M: a: 0 M: b: 0 M: c: 0 M: e: '0 0 0' +M: f: '0 0 0'