Skip to content

Commit

Permalink
chore(developer): add first test case for call in GetXStringImpl_type…
Browse files Browse the repository at this point in the history
…_c test
  • Loading branch information
markcsinclair committed Aug 19, 2024
1 parent 06faa71 commit d552e57
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions developer/src/kmcmplib/tests/gtest-compiler-test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d552e57

Please sign in to comment.