summaryrefslogtreecommitdiff
path: root/tests/unit_tests/test_double_OpLogEq.sci
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit_tests/test_double_OpLogEq.sci')
-rw-r--r--tests/unit_tests/test_double_OpLogEq.sci25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/unit_tests/test_double_OpLogEq.sci b/tests/unit_tests/test_double_OpLogEq.sci
new file mode 100644
index 00000000..e0e843b6
--- /dev/null
+++ b/tests/unit_tests/test_double_OpLogEq.sci
@@ -0,0 +1,25 @@
+function test_double_OpLogEq()
+ a = 1;
+ b = 2 + %i;
+ c = [1 2 3]
+ d = %i * [1 2 3 4 5 6]
+ disp(a == a); // d0d0OpLogEqd0
+ disp(a == b); // d0z0OpLogEqd0
+ disp(a == c); // d0d2OpLogEqd2
+ disp(a == d); // d0z2OpLogEqd2
+
+ disp(b == a); // z0d0OpLogEqd0
+ disp(b == b); // z0z0OpLogEqd0
+ disp(b == c); // z0d2OpLogEqd2
+ disp(b == d); // z0z2OpLogEqd2
+
+ disp(c == a); // d2d0OpLogEqd0
+ disp(c == b); // d2z0OpLogEqd0
+ disp(c == c); // d2d2OpLogEqd2
+ disp(c == d); // d2z2OpLogEqd2
+
+ disp(d == a); // z2d0OpLogEqd0
+ disp(d == b); // z2z0OpLogEqd0
+ disp(d == c); // z2d2OpLogEqd2
+ disp(d == d); // z2z2OpLogEqd2
+endfunction