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
F19810419: D8314.diff
Tue, Mar 3, 7:40 PM
F19803436: D8314.id19781.diff
Sun, Mar 1, 11:24 PM
F19797801: D8314.id.diff
Fri, Feb 27, 7:47 PM
F19586519: D8314.diff
Feb 2 2026, 6:00 AM
F19542404: D8314.id19781.diff
Jan 22 2026, 9:15 AM
F19539350: D8314.id.diff
Jan 21 2026, 6:07 PM
F18945879: D8314.id19781.diff
Nov 11 2025, 7:05 PM
F18867001: D8314.diff
Nov 3 2025, 8:53 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().