From 5aaa601f56e51aab49940d5422fb93f1b09a1841 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Mon, 26 Aug 2013 12:54:51 +0200 Subject: [PATCH] test for &~= vector --- tests/bitnot.qc | 3 +++ tests/bitnot.tmpl | 1 + 2 files changed, 4 insertions(+) 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' -- 2.39.2