-
-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test(developer): kmcmplib compiler unit tests 5 #12612
base: master
Are you sure you want to change the base?
test(developer): kmcmplib compiler unit tests 5 #12612
Conversation
…ection cannot be reached
User Test ResultsTest specification and instructions User tests are not required Test Artifacts
|
…compiler-unit-tests-5
…cpp and kmn_compiler_errors.h
…wsRequired inside it
…ection from gtest-compiler-test.cpp
Ready to review P;ease note that the code for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, nice little cleanup
|
||
sFlag = 0; | ||
sFlag = 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sFlag = 0; |
nit only 😁
Google Test based unit tests for Compiler.cpp
As it was identified that no recursive call was made to
GetXStringImpl()
from within the virtual key case (case 11), the checks (Compiler.cpp
) and resulting error messages (kmn_compiler_errors.h
) when other keywords were identified within a virtual key section were stripped out. The error messages removed were:ERROR_StringInVirtualKeySection
ERROR_AnyInVirtualKeySection
ERROR_BeepInVirtualKeySection
ERROR_IndexInVirtualKeySection
ERROR_OutsInVirtualKeySection
ERROR_ContextInVirtualKeySection
ERROR_CallInVirtualKeySection
ERROR_InvalidInVirtualKeySection
In addition, three variables relating to the parsing of virtual keys were localised by turning the case into a block.
The corresponding errors were also removed from
kmn_compiler_messages.ts
.TODO comments in
gtest-compiler-test.cpp
were also removed.A separate issue and fix were not written, but the compiler changes incorporated here.
Continues PR #12489
@keymanapp-test-bot skip