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
F13293559: D8314.id19766.diff
Wed, Jun 5, 9:25 AM
F13257895: D8314.diff
Sun, May 26, 5:14 AM
F13242448: D8314.diff
Thu, May 23, 2:46 AM
F13235488: D8314.id19781.diff
Tue, May 21, 5:33 AM
F13220573: D8314.diff
Sun, May 19, 1:44 AM
F13202630: D8314.diff
Tue, May 14, 10:56 PM
F13186414: D8314.diff
Sat, May 11, 3:37 AM
F13181056: D8314.id19781.diff
Thu, May 9, 7:58 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

Repository
rP Phabricator
Branch
pmbp1
Lint
Lint Passed
Unit
Tests Passed

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().