summaryrefslogtreecommitdiff
path: root/src/tests/eolian_cxx/eolian_cxx_test_documentation.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/eolian_cxx/eolian_cxx_test_documentation.cc')
-rw-r--r--src/tests/eolian_cxx/eolian_cxx_test_documentation.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/eolian_cxx/eolian_cxx_test_documentation.cc b/src/tests/eolian_cxx/eolian_cxx_test_documentation.cc
index 4ec7dfe56e..8acca1001c 100644
--- a/src/tests/eolian_cxx/eolian_cxx_test_documentation.cc
+++ b/src/tests/eolian_cxx/eolian_cxx_test_documentation.cc
@@ -26,7 +26,7 @@ klass_def init_test_data(efl::eolian::eolian_state const& state)
26 ck_assert(::eolian_state_all_eot_files_parse(state.value)); 26 ck_assert(::eolian_state_all_eot_files_parse(state.value));
27 ck_assert(::eolian_state_file_parse(state.value, PACKAGE_DATA_DIR"/docs.eo")); 27 ck_assert(::eolian_state_file_parse(state.value, PACKAGE_DATA_DIR"/docs.eo"));
28 28
29 const Eolian_Class *c_klass = ::eolian_class_get_by_name(state.as_unit(), "Docs"); 29 const Eolian_Class *c_klass = ::eolian_state_class_by_name_get(state.value, "Docs");
30 ck_assert_ptr_ne(c_klass, NULL); 30 ck_assert_ptr_ne(c_klass, NULL);
31 31
32 klass_def klass(c_klass, state.as_unit()); 32 klass_def klass(c_klass, state.as_unit());
@@ -172,7 +172,7 @@ START_TEST(eolian_cxx_test_enum_docs)
172 klass_def klass = init_test_data(eolian_state); 172 klass_def klass = init_test_data(eolian_state);
173 173
174 auto unit = eolian_state.as_unit(); 174 auto unit = eolian_state.as_unit();
175 enum_def _enum(::eolian_typedecl_enum_get_by_name(unit, "Bar"), unit); 175 enum_def _enum(::eolian_state_enum_by_name_get(eolian_state.value, "Bar"), unit);
176 176
177 documentation_def doc = _enum.documentation; 177 documentation_def doc = _enum.documentation;
178 ck_assert_str_eq(doc.summary.c_str(), "Docs for enum Bar."); 178 ck_assert_str_eq(doc.summary.c_str(), "Docs for enum Bar.");
@@ -215,7 +215,7 @@ START_TEST(eolian_cxx_test_struct_docs)
215 klass_def klass = init_test_data(eolian_state); 215 klass_def klass = init_test_data(eolian_state);
216 216
217 auto unit = eolian_state.as_unit(); 217 auto unit = eolian_state.as_unit();
218 struct_def _struct(::eolian_typedecl_struct_get_by_name(unit, "Foo"), unit); 218 struct_def _struct(::eolian_state_struct_by_name_get(eolian_state.value, "Foo"), unit);
219 219
220 documentation_def doc = _struct.documentation; 220 documentation_def doc = _struct.documentation;
221 ck_assert_str_eq(doc.summary.c_str(), "This is struct Foo. " 221 ck_assert_str_eq(doc.summary.c_str(), "This is struct Foo. "