forked from OSchip/llvm-project
fix unittest on platforms with unsigned chars (e.g. linux-ppc)
llvm-svn: 77471
This commit is contained in:
parent
b5a5de291d
commit
a6d0436b97
|
@ -36,7 +36,7 @@ TEST(TwineTest, Numbers) {
|
||||||
EXPECT_EQ("123", Twine::utostr(123).str());
|
EXPECT_EQ("123", Twine::utostr(123).str());
|
||||||
EXPECT_EQ("-123", Twine::itostr(-123).str());
|
EXPECT_EQ("-123", Twine::itostr(-123).str());
|
||||||
EXPECT_EQ("123", Twine::utostr((char) 123).str());
|
EXPECT_EQ("123", Twine::utostr((char) 123).str());
|
||||||
EXPECT_EQ("-123", Twine::itostr((char) -123).str());
|
EXPECT_EQ("-123", Twine::itostr((signed char) -123).str());
|
||||||
|
|
||||||
EXPECT_EQ("7B", Twine::utohexstr(123).str());
|
EXPECT_EQ("7B", Twine::utohexstr(123).str());
|
||||||
EXPECT_EQ("FFFFFFFFFFFFFF85", Twine::itohexstr(-123).str());
|
EXPECT_EQ("FFFFFFFFFFFFFF85", Twine::itohexstr(-123).str());
|
||||||
|
|
Loading…
Reference in New Issue