proxygen
UtilTest.cpp File Reference

Go to the source code of this file.

Functions

 TEST (UtilTest, CaseInsensitiveEqual)
 

Function Documentation

TEST ( UtilTest  ,
CaseInsensitiveEqual   
)

Definition at line 15 of file UtilTest.cpp.

References ASSERT_FALSE, ASSERT_TRUE, proxygen::caseInsensitiveEqual(), and string.

15  {
16  ASSERT_TRUE(caseInsensitiveEqual("foo", "FOO"));
19  ASSERT_FALSE(caseInsensitiveEqual("fo", "FOO"));
20  ASSERT_FALSE(caseInsensitiveEqual("FO", "FOO"));
21 }
bool caseInsensitiveEqual(folly::StringPiece s, folly::StringPiece t)
Definition: UtilInl.h:17
const char * string
Definition: Conv.cpp:212
#define ASSERT_FALSE(condition)
Definition: gtest.h:1868
#define ASSERT_TRUE(condition)
Definition: gtest.h:1865