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
F15528355: D8314.id19766.diff
Tue, Apr 22, 10:39 AM
F15520249: D8314.id19781.diff
Sun, Apr 20, 4:55 AM
F15513786: D8314.id.diff
Thu, Apr 17, 9:51 PM
F15510420: D8314.diff
Wed, Apr 16, 8:07 PM
F15454750: D8314.diff
Sat, Mar 29, 8:10 PM
F15403508: D8314.id19781.diff
Mar 18 2025, 3:39 AM
F15389655: D8314.diff
Mar 15 2025, 5:32 AM
F15337486: D8314.diff
Mar 9 2025, 6:03 AM
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().