summaryrefslogtreecommitdiff
path: root/src/tests/efl_mono/Eo.cs
diff options
context:
space:
mode:
authorVitor Sousa <vitorsousa@expertisesolutions.com.br>2019-02-28 11:09:38 -0300
committerVitor Sousa <vitorsousa@expertisesolutions.com.br>2019-02-28 12:05:36 -0300
commitf78be36dfea490e62943a751dfee6347f3212a97 (patch)
treeba8863150008ec928573c4c3403fc151a373746d /src/tests/efl_mono/Eo.cs
parenta25c0d713754a7fc153ff83c89212489d72ab4c0 (diff)
efl_csharp: add constant variable generation to C# binding (constants)
Reviewers: lauromoura, q66, bu5hm4n, zmike, cedric, felipealmeida, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, cedric, #reviewers, #committers Tags: #efl_language_bindings Differential Revision: https://phab.enlightenment.org/D8048
Diffstat (limited to 'src/tests/efl_mono/Eo.cs')
-rw-r--r--src/tests/efl_mono/Eo.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/tests/efl_mono/Eo.cs b/src/tests/efl_mono/Eo.cs
index ed1d65a779..3e7f662151 100644
--- a/src/tests/efl_mono/Eo.cs
+++ b/src/tests/efl_mono/Eo.cs
@@ -190,6 +190,24 @@ class TestTypedefs
190 } 190 }
191} 191}
192 192
193class TestVariables
194{
195 public static void test_constant_variables()
196 {
197 Test.AssertEquals(Dummy.Constants.ConstvarBool, true);
198 Test.AssertEquals(Dummy.Constants.ConstvarInt, -32766);
199 Test.AssertEquals(Dummy.Constants.ConstvarUInt, 65533U);
200 Test.AssertEquals(Dummy.Constants.ConstvarLong, -2147483644L);
201 Test.AssertEquals(Dummy.Constants.ConstvarULong, 4294967288UL);
202 //Test.AssertEquals(Dummy.Constants.ConstvarLLong, -9223372036854775800); // TODO
203 //Test.AssertEquals(Dummy.Constants.ConstvarULLong, 18446744073709551615);
204 Test.AssertEquals(Dummy.Constants.ConstvarFloat, 16777211.0f);
205 Test.AssertEquals(Dummy.Constants.ConstvarDouble, 9007199254740988.0);
206 Test.AssertEquals(Dummy.Constants.ConstvarChar, '!');
207 Test.AssertEquals(Dummy.Constants.ConstvarString, "test_str");
208 }
209}
210
193class TestEoAccessors 211class TestEoAccessors
194{ 212{
195 public static void basic_eo_accessors() 213 public static void basic_eo_accessors()