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
F15454750: D8314.diff
Sat, Mar 29, 8:10 PM
F15403508: D8314.id19781.diff
Tue, Mar 18, 3:39 AM
F15389655: D8314.diff
Sat, Mar 15, 5:32 AM
F15337486: D8314.diff
Mar 9 2025, 6:03 AM
F15320484: D8314.id.diff
Mar 6 2025, 9:58 PM
Unknown Object (File)
Feb 23 2025, 3:56 PM
Unknown Object (File)
Feb 9 2025, 11:37 AM
Unknown Object (File)
Feb 9 2025, 11:37 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().