summaryrefslogtreecommitdiff
path: root/tests/unit_tests/test_double_OpLogNe.sci
diff options
context:
space:
mode:
authorjofret2009-06-05 15:31:48 +0000
committerjofret2009-06-05 15:31:48 +0000
commit74ee91efdd1d12cb6e224ecc87f0cc51a51bcbc1 (patch)
tree484736de55d5ce87a2503cb7024c1835f8073766 /tests/unit_tests/test_double_OpLogNe.sci
parent462563271edd528e1785ed30beff1683f1859ac2 (diff)
downloadscilab2c-74ee91efdd1d12cb6e224ecc87f0cc51a51bcbc1.tar.gz
scilab2c-74ee91efdd1d12cb6e224ecc87f0cc51a51bcbc1.tar.bz2
scilab2c-74ee91efdd1d12cb6e224ecc87f0cc51a51bcbc1.zip
Enable order comparison
Diffstat (limited to 'tests/unit_tests/test_double_OpLogNe.sci')
-rw-r--r--tests/unit_tests/test_double_OpLogNe.sci25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/unit_tests/test_double_OpLogNe.sci b/tests/unit_tests/test_double_OpLogNe.sci
new file mode 100644
index 00000000..64d582d8
--- /dev/null
+++ b/tests/unit_tests/test_double_OpLogNe.sci
@@ -0,0 +1,25 @@
+function test_double_OpLogNe()
+ 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