[+] Added sub locale test

[*] Update build scripts
This commit is contained in:
Reece Wilson 2022-02-22 02:56:45 +00:00
parent 863227fb7a
commit 3de73e7ec7
2 changed files with 13 additions and 1 deletions

@ -1 +1 @@
Subproject commit 3b9bf8adf1958264a5608ac1d28367ea50428973
Subproject commit 3a79d9e0df5f09ac1c3a7ace56f022f292555640

View File

@ -69,6 +69,18 @@ TEST(TranslateEncoding, jpstreamingbuffered)
ASSERT_EQ(readWrittenPair.first, 0xc);
}
TEST(TranslateEncoding, utf16streamingillegal)
{
static const unsigned char rawData[]
{
0x3D, 0xD8, 0x02, 0xDC
};
auto readWrittenPair = Aurora::Locale::Encoding::DecodeUTF8(Aurora::Memory::MemoryViewRead(rawData, 2), {}, Aurora::Locale::ECodePage::eUTF16);
ASSERT_EQ(readWrittenPair.second, 0);
ASSERT_EQ(readWrittenPair.first, 0);
}
void RunTests()
{
Aurora::RuntimeStartInfo info;