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
Unknown Object (File)
Sun, Dec 22, 6:53 AM
Unknown Object (File)
Sun, Dec 15, 4:21 PM
Unknown Object (File)
Sat, Dec 7, 11:21 PM
Unknown Object (File)
Fri, Dec 6, 4:37 PM
Unknown Object (File)
Tue, Dec 3, 1:04 AM
Unknown Object (File)
Sat, Nov 30, 5:11 PM
Unknown Object (File)
Fri, Nov 29, 9:05 PM
Unknown Object (File)
Nov 26 2024, 7:00 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().