Skip to content

Instantly share code, notes, and snippets.

@Lunanne
Last active December 11, 2015 00:29
Show Gist options
  • Select an option

  • Save Lunanne/4516842 to your computer and use it in GitHub Desktop.

Select an option

Save Lunanne/4516842 to your computer and use it in GitHub Desktop.
Unit test tryout plString
TEST(PlStringTest,ToUtf16)
{
uint16_t text[] = {0xFEFF0061,0xFEFF00E8,0xFEFF03A3,0xFEFF2F49};
plStringBuffer<uint16_t> expected = plStringBuffer<uint16_t>(text,4);
plStringBuffer<uint16_t> output = plString("aèΣ⽉").ToUtf16();
//EXPECT_EQ(expected,output); Compare expected and output in some way
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment