summaryrefslogtreecommitdiff
path: root/src/tests/efl_mono
diff options
context:
space:
mode:
authorBruno da Silva Belo <brunodasilvabelo@gmail.com>2019-10-28 20:34:25 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-10-28 20:34:25 -0300
commit19588be0b9960d4a3440f0fabd2bb6914476dcae (patch)
treec5b0cd1fad71f839c80c5e2a50ee6669f0d913f3 /src/tests/efl_mono
parent91ae0ea12fc3dc46ac74a098b5bfe39091960aff (diff)
csharp: Add comparables operators to eina_value.
Summary: ref T8394 Reviewers: lauromoura, felipealmeida, segfaultxavi, YOhoho, bu5hm4n Reviewed By: YOhoho Subscribers: bu5hm4n, cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T8394 Differential Revision: https://phab.enlightenment.org/D10458
Diffstat (limited to 'src/tests/efl_mono')
-rw-r--r--src/tests/efl_mono/Value.cs11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/tests/efl_mono/Value.cs b/src/tests/efl_mono/Value.cs
index 969b336..6bf36d7 100644
--- a/src/tests/efl_mono/Value.cs
+++ b/src/tests/efl_mono/Value.cs
@@ -459,7 +459,7 @@ public static class TestEinaValue {
459 } 459 }
460 } 460 }
461 461
462 public static void TestValueComparisonOverloadLessMore() 462 public static void TestValueComparisonOverloadLessGreater()
463 { 463 {
464 using (Eina.Value a = new Eina.Value(Eina.ValueType.Int32)) 464 using (Eina.Value a = new Eina.Value(Eina.ValueType.Int32))
465 using (Eina.Value b = new Eina.Value(Eina.ValueType.Int32)) { 465 using (Eina.Value b = new Eina.Value(Eina.ValueType.Int32)) {
@@ -467,9 +467,18 @@ public static class TestEinaValue {
467 Test.Assert(b.Set(0)); 467 Test.Assert(b.Set(0));
468 468
469 Test.Assert(a > b); 469 Test.Assert(a > b);
470 Test.Assert(!(a <= b));
470 Test.Assert(!(a < b)); 471 Test.Assert(!(a < b));
472 Test.Assert(a >= b);
471 Test.Assert(b < a); 473 Test.Assert(b < a);
474 Test.Assert(!(b >= a));
472 Test.Assert(!(b > a)); 475 Test.Assert(!(b > a));
476 Test.Assert(b <= a);
477
478 Test.AssertEquals(a > b, !(a <= b));
479 Test.AssertEquals(!(a < b), a >= b);
480 Test.AssertEquals(b < a, !(b >= a));
481 Test.AssertEquals(!(b > a), b <= a);
473 } 482 }
474 } 483 }
475 484