Fix FBStringTest build failure and hash computation for wchar
authorQinfan Wu <wqfish@fb.com>
Sat, 16 Jul 2016 05:52:10 +0000 (22:52 -0700)
committerFacebook Github Bot 6 <facebook-github-bot-6-bot@fb.com>
Sat, 16 Jul 2016 05:53:27 +0000 (22:53 -0700)
commit77cf88a74ec8fce0d460613411df8a7cad871d3a
tree8ab58008d9a603d1f63d6b1289c3d73fed7ef372
parent6871c5cc6f02cea70038893bf795f9968255940d
Fix FBStringTest build failure and hash computation for wchar

Summary:
Getting some build errors when doing `buck test folly/...`. This seems to be fixing it.

  folly/test/FBStringTest.cpp:1290:23: error: unknown type name 'basic_fbstring'; did you mean 'basic_fstream'?
    using u16fbstring = basic_fbstring<char16_t>;
                        ^~~~~~~~~~~~~~
                        basic_fstream

Also the test `testHashChar16` was failing because only part of the string is used when computing hash.

Reviewed By: yfeldblum

Differential Revision: D3575858

fbshipit-source-id: cdd5bdb9653d50beaf0ec82b659d31354b345441
folly/FBString.h
folly/test/FBStringTest.cpp