Skip to content

Commit 9add2cb

Browse files
committed
chore(core): ldml update keyboard -> keyboard3 🙀
For: #9604 - yes, C++ changes also
1 parent 0a8eec1 commit 9add2cb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

core/tests/unit/ldml/ldml_test_source.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -698,15 +698,15 @@ int LdmlJsonTestSourceFactory::load(const km::kbp::path &compiled, const km::kbp
698698
return __LINE__;
699699
}
700700

701-
auto conformsTo = data["/keyboardTest/conformsTo"_json_pointer].get<std::string>();
701+
auto conformsTo = data["/keyboardTest3/conformsTo"_json_pointer].get<std::string>();
702702
assert_or_return(std::string(LDML_CLDR_VERSION_LATEST) == conformsTo);
703-
auto info_keyboard = data["/keyboardTest/info/keyboard"_json_pointer].get<std::string>();
704-
auto info_author = data["/keyboardTest/info/author"_json_pointer].get<std::string>();
705-
auto info_name = data["/keyboardTest/info/name"_json_pointer].get<std::string>();
703+
auto info_keyboard = data["/keyboardTest3/info/keyboard"_json_pointer].get<std::string>();
704+
auto info_author = data["/keyboardTest3/info/author"_json_pointer].get<std::string>();
705+
auto info_name = data["/keyboardTest3/info/name"_json_pointer].get<std::string>();
706706
// TODO-LDML: store these elsewhere?
707707
std::cout << "JSON: reading " << info_name << " test of " << info_keyboard << " by " << info_author << std::endl;
708708

709-
auto all_tests = data["/keyboardTest/tests"_json_pointer];
709+
auto all_tests = data["/keyboardTest3/tests"_json_pointer];
710710
assert_or_return((!all_tests.empty()) && (all_tests.size() > 0)); // TODO-LDML: can be empty if repertoire only?
711711

712712
for(auto tests : all_tests) {
@@ -724,7 +724,7 @@ int LdmlJsonTestSourceFactory::load(const km::kbp::path &compiled, const km::kbp
724724
}
725725

726726
#if defined(HAVE_ICU4C)
727-
auto rep_tests = data["/keyboardTest/repertoire"_json_pointer];
727+
auto rep_tests = data["/keyboardTest3/repertoire"_json_pointer];
728728
assert_or_return((!rep_tests.empty()) && (rep_tests.size() > 0)); // TODO-LDML: can be empty if tests only?
729729

730730
for(auto rep : rep_tests) {

0 commit comments

Comments
 (0)