aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/eolian_cxx/eolian_cxx_test_binding.cc
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-01-10 12:36:39 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2019-01-10 12:47:58 +0100
commita5b338ded3d8de06baceaacc515b14342db050d1 (patch)
tree971822673f7b86f64139e6959909b08b5092e3da /src/tests/eolian_cxx/eolian_cxx_test_binding.cc
parentmeson: fix a potentionally unexpected behavior (diff)
downloadefl-a5b338ded3d8de06baceaacc515b14342db050d1.tar.gz
cxx: Add class get name attribute.
Summary: C# generator was mistakenly reimplementing it assuming everything was *_class_get. Test Plan: run cxx/csharp tests Reviewers: felipealmeida, cedric, segfaultxavi Reviewed By: segfaultxavi Subscribers: segfaultxavi, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7522
Diffstat (limited to '')
-rw-r--r--src/tests/eolian_cxx/eolian_cxx_test_binding.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/tests/eolian_cxx/eolian_cxx_test_binding.cc b/src/tests/eolian_cxx/eolian_cxx_test_binding.cc
index 936687a288..2215312f18 100644
--- a/src/tests/eolian_cxx/eolian_cxx_test_binding.cc
+++ b/src/tests/eolian_cxx/eolian_cxx_test_binding.cc
@@ -309,6 +309,19 @@ EFL_START_TEST(eolian_cxx_test_parent_extensions)
}
EFL_END_TEST
+EFL_START_TEST(eolian_cxx_test_cls_get)
+{
+ efl::eolian::eolian_init eolian_init;
+ efl::eolian::eolian_state eolian_state;
+
+ klass_def cls = init_test_data("generic.eo", "Generic", eolian_state);
+ ck_assert_str_eq("generic_class_get", cls.klass_get_name.c_str());
+
+ klass_def iface = init_test_data("generic_interface.eo", "Generic_Interface", eolian_state);
+ ck_assert_str_eq("generic_interface_interface_get", iface.klass_get_name.c_str());
+}
+EFL_END_TEST
+
void
eolian_cxx_test_binding(TCase* tc)
{
@@ -321,4 +334,5 @@ eolian_cxx_test_binding(TCase* tc)
tcase_add_test(tc, eolian_cxx_test_type_callback);
tcase_add_test(tc, eolian_cxx_test_properties);
tcase_add_test(tc, eolian_cxx_test_parent_extensions);
+ tcase_add_test(tc, eolian_cxx_test_cls_get);
}