mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 15:23:04 +00:00
[NTDLL_APITEST] Add another test for RtlLocaleNameToLcid
This commit is contained in:
parent
9832737843
commit
942d362ff8
1 changed files with 8 additions and 2 deletions
|
@ -774,18 +774,24 @@ static void Test_RtlLocaleNameToLcid(void)
|
|||
ok_ntstatus(Status, STATUS_INVALID_PARAMETER_1);
|
||||
ok_eq_hex(Lcid, 0xDEADBEEF);
|
||||
|
||||
// Test NULL LocaleName
|
||||
// Test NULL LocaleName (aka LOCALE_NAME_USER_DEFAULT)
|
||||
Lcid = 0xDEADBEEF;
|
||||
Status = pRtlLocaleNameToLcid(NULL, &Lcid, 0);
|
||||
ok_ntstatus(Status, STATUS_INVALID_PARAMETER_1);
|
||||
ok_eq_hex(Lcid, 0xDEADBEEF);
|
||||
|
||||
// Test empty LocaleName
|
||||
// Test empty LocaleName (aka LOCALE_NAME_INVARIANT)
|
||||
Lcid = 0xDEADBEEF;
|
||||
Status = pRtlLocaleNameToLcid(L"", &Lcid, 0);
|
||||
ok_ntstatus(Status, STATUS_SUCCESS);
|
||||
ok_eq_hex(Lcid, LOCALE_INVARIANT);
|
||||
|
||||
// Test LOCALE_NAME_SYSTEM_DEFAULT
|
||||
Lcid = 0xDEADBEEF;
|
||||
Status = pRtlLocaleNameToLcid(L"!sys-default-locale", &Lcid, 0);
|
||||
ok_ntstatus(Status, STATUS_INVALID_PARAMETER_1);
|
||||
ok_eq_hex(Lcid, 0xDEADBEEF);
|
||||
|
||||
// Test invalid LocaleName
|
||||
Lcid = 0xDEADBEEF;
|
||||
Status = pRtlLocaleNameToLcid(L"en-UX", &Lcid, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue