From d552e5773a4c32f47e9e40f9904bc47b486436c4 Mon Sep 17 00:00:00 2001 From: "Dr Mark C. Sinclair" Date: Mon, 19 Aug 2024 12:35:52 +0100 Subject: [PATCH] chore(developer): add first test case for call in GetXStringImpl_type_c test --- developer/src/kmcmplib/tests/gtest-compiler-test.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/developer/src/kmcmplib/tests/gtest-compiler-test.cpp b/developer/src/kmcmplib/tests/gtest-compiler-test.cpp index 0ad914ab0c1..a391de77dc4 100644 --- a/developer/src/kmcmplib/tests/gtest-compiler-test.cpp +++ b/developer/src/kmcmplib/tests/gtest-compiler-test.cpp @@ -1326,6 +1326,13 @@ TEST_F(CompilerTest, GetXStringImpl_type_c_test) { EXPECT_EQ(STATUS_Success, GetXStringImpl(tstr, &fileKeyboard, str, u"", output, 80, 0, &newp, FALSE)); const KMX_WCHAR tstr_clearcontext_valid[] = { UC_SENTINEL, CODE_CLEARCONTEXT, 0 }; EXPECT_EQ(0, u16cmp(tstr_clearcontext_valid, tstr)); + + // call, KmnCompilerMessages::ERROR_501FeatureOnly_Call + fileKeyboard.version = VERSION_50; + u16cpy(str, u"call"); + EXPECT_EQ(KmnCompilerMessages::ERROR_501FeatureOnly_Call, GetXStringImpl(tstr, &fileKeyboard, str, u"", output, 80, 0, &newp, FALSE)); + + // context, KmnCompilerMessages::ERROR_CallInVirtualKeySection *** TODO *** } // KMX_DWORD process_baselayout(PFILE_KEYBOARD fk, PKMX_WCHAR q, PKMX_WCHAR tstr, int *mx)