proxygen
AsciiCaseInsensitiveTest.cpp File Reference
#include <folly/Range.h>
#include <folly/portability/GFlags.h>
#include <folly/portability/GTest.h>
#include <algorithm>

Go to the source code of this file.

Functions

 TEST (CaseInsensitiveMatch, CompareWithLegacy)
 
int main (int argc, char **argv)
 

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 34 of file AsciiCaseInsensitiveTest.cpp.

References testing::InitGoogleTest(), and RUN_ALL_TESTS().

34  {
36  gflags::ParseCommandLineFlags(&argc, &argv, true);
37  return RUN_ALL_TESTS();
38 }
int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_
Definition: gtest.h:2232
char ** argv
GTEST_API_ void InitGoogleTest(int *argc, char **argv)
Definition: gtest.cc:5370
TEST ( CaseInsensitiveMatch  ,
CompareWithLegacy   
)

Definition at line 26 of file AsciiCaseInsensitiveTest.cpp.

References EXPECT_TRUE, and i.

26  {
28  for (int i = 0; i < (1 << 8); i++) {
29  EXPECT_TRUE(cmp(tolower(i), toupper(i)));
30  EXPECT_TRUE(cmp(toupper(i), tolower(i)));
31  }
32 }
#define EXPECT_TRUE(condition)
Definition: gtest.h:1859