summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-03-11 13:02:51 -0300
committerVitor Sousa <vitorsousa@expertisesolutions.com.br>2019-03-11 14:41:01 -0300
commit2a003420f83134331c8b404df1905cba538cfad6 (patch)
tree4d2ce96ed345346e1dc8a150c4350c839c224beb /src/tests
parent2331ae3692507b7f0b49328293579cd6ef8b5909 (diff)
eolian-cxx: Add beta information to *_def
Summary: Fixes T7732 Reviewers: cedric, felipealmeida, vitor.sousa, bu5hm4n Reviewed By: vitor.sousa Subscribers: #reviewers, #committers Tags: #efl Maniphest Tasks: T7732 Differential Revision: https://phab.enlightenment.org/D8267
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/eolian_cxx/beta_class.eo3
-rw-r--r--src/tests/eolian_cxx/eolian_cxx_test_binding.cc14
2 files changed, 17 insertions, 0 deletions
diff --git a/src/tests/eolian_cxx/beta_class.eo b/src/tests/eolian_cxx/beta_class.eo
new file mode 100644
index 0000000000..ba91bf7660
--- /dev/null
+++ b/src/tests/eolian_cxx/beta_class.eo
@@ -0,0 +1,3 @@
1class @beta Beta_Class extends Efl.Object
2{
3}
diff --git a/src/tests/eolian_cxx/eolian_cxx_test_binding.cc b/src/tests/eolian_cxx/eolian_cxx_test_binding.cc
index 2a055aa5c3..9d1734c94d 100644
--- a/src/tests/eolian_cxx/eolian_cxx_test_binding.cc
+++ b/src/tests/eolian_cxx/eolian_cxx_test_binding.cc
@@ -350,6 +350,19 @@ EFL_START_TEST(eolian_cxx_test_constructors)
350} 350}
351EFL_END_TEST 351EFL_END_TEST
352 352
353EFL_START_TEST(eolian_cxx_test_beta)
354{
355 efl::eolian::eolian_init eolian_init;
356 efl::eolian::eolian_state eolian_state;
357
358 klass_def cls = init_test_data("generic.eo", "Generic", eolian_state);
359 klass_def beta_cls = init_test_data("beta_class.eo", "Beta_Class", eolian_state);
360
361 ck_assert(!cls.is_beta);
362 ck_assert(beta_cls.is_beta);
363}
364EFL_END_TEST
365
353void 366void
354eolian_cxx_test_binding(TCase* tc) 367eolian_cxx_test_binding(TCase* tc)
355{ 368{
@@ -364,4 +377,5 @@ eolian_cxx_test_binding(TCase* tc)
364 tcase_add_test(tc, eolian_cxx_test_parent_extensions); 377 tcase_add_test(tc, eolian_cxx_test_parent_extensions);
365 tcase_add_test(tc, eolian_cxx_test_cls_get); 378 tcase_add_test(tc, eolian_cxx_test_cls_get);
366 tcase_add_test(tc, eolian_cxx_test_constructors); 379 tcase_add_test(tc, eolian_cxx_test_constructors);
380 tcase_add_test(tc, eolian_cxx_test_beta);
367} 381}