diff --git a/core/tests/unit/ldml/ldml_test_source.cpp b/core/tests/unit/ldml/ldml_test_source.cpp index b638379bb6d..71c5a7ee4e0 100644 --- a/core/tests/unit/ldml/ldml_test_source.cpp +++ b/core/tests/unit/ldml/ldml_test_source.cpp @@ -367,12 +367,19 @@ LdmlEmbeddedTestSource::vkey_to_event(std::string const &vk_event) { modifier_state |= modifier; } else { vk = get_vk(s); - break; + if (vk == 0) { + std::cerr << "Error parsing [" << vk_event << "] - could not find vkey or modifier: " << s << std::endl; + } + assert(vk != 0); + break; // only one vkey allowed } } // The string should be empty at this point - assert(!std::getline(f, s, ' ')); + if (std::getline(f, s, ' ')) { + std::cerr << "Error parsing vkey ["<