mirror of
https://github.com/zebrajr/pytorch.git
synced 2026-01-15 12:15:51 +00:00
Enable more readability-redundant checks (#143963)
They are helpful to simplifying code. Pull Request resolved: https://github.com/pytorch/pytorch/pull/143963 Approved by: https://github.com/albanD
This commit is contained in:
@@ -49,8 +49,8 @@ TEST(StringUtilTest, testStrWideSingleMultibyte) {
|
||||
|
||||
namespace test_str_wide_empty {
|
||||
TEST(StringUtilTest, testStrWideEmpty) {
|
||||
std::wstring s = L"";
|
||||
std::string narrow = "";
|
||||
std::wstring s;
|
||||
std::string narrow;
|
||||
EXPECT_EQ(narrow, c10::str(s));
|
||||
|
||||
const wchar_t* c_str = s.c_str();
|
||||
|
||||
Reference in New Issue
Block a user