proxygen
UtilTest.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2015-present, Facebook, Inc.
3  * All rights reserved.
4  *
5  * This source code is licensed under the BSD-style license found in the
6  * LICENSE file in the root directory of this source tree. An additional grant
7  * of patent rights can be found in the PATENTS file in the same directory.
8  *
9  */
12 
13 using namespace proxygen;
14 
15 TEST(UtilTest, CaseInsensitiveEqual) {
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
TEST(UtilTest, CaseInsensitiveEqual)
Definition: UtilTest.cpp:15
const char * string
Definition: Conv.cpp:212
#define ASSERT_FALSE(condition)
Definition: gtest.h:1868
#define ASSERT_TRUE(condition)
Definition: gtest.h:1865