diff options
author | jofret | 2009-06-05 15:31:48 +0000 |
---|---|---|
committer | jofret | 2009-06-05 15:31:48 +0000 |
commit | 74ee91efdd1d12cb6e224ecc87f0cc51a51bcbc1 (patch) | |
tree | 484736de55d5ce87a2503cb7024c1835f8073766 /tests/unit_tests/test_double_OpLogNe.sci | |
parent | 462563271edd528e1785ed30beff1683f1859ac2 (diff) | |
download | scilab2c-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.sci | 25 |
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 |