Page MenuHomePhabricator

Add test coverage that our definition of BMP agrees with MySQL
ClosedPublic

Authored by epriestley on Feb 23 2014, 8:38 PM.
Tags
None
Referenced Files
F14097680: D8314.diff
Tue, Nov 26, 7:35 AM
Unknown Object (File)
Thu, Oct 31, 11:15 PM
Unknown Object (File)
Thu, Oct 31, 12:10 PM
Unknown Object (File)
Sun, Oct 27, 1:10 PM
Unknown Object (File)
Oct 26 2024, 3:41 PM
Unknown Object (File)
Oct 19 2024, 12:33 PM
Unknown Object (File)
Sep 15 2024, 12:22 PM
Unknown Object (File)
Sep 15 2024, 12:22 PM
Subscribers

Details

Summary

Ref T1191. Test that MySQL's rules match those of phutil_is_utf8_with_only_bmp_characters():

  • Build a string with every character that we consider to be a BMP character.
  • Write it into MySQL.
  • Read it back out.
  • Make sure MySQL didn't truncate it.
Test Plan

Ran unit test. This test runs pretty quickly (50ms), the string with every character isn't all that enormous.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

epriestley updated this revision to Unknown Object (????).Feb 23 2014, 8:40 PM
  • Adjust the character ranges to match phutil_is_utf8_with_only_bmp_characters().