Example #1
0
TEST( GetWordBoundaryCharsTest, PunctuationStart ) {
  EXPECT_EQ( "s", GetWordBoundaryChars( "_simple" ) );
  EXPECT_EQ( "s", GetWordBoundaryChars( ".simple" ) );
  EXPECT_EQ( "s", GetWordBoundaryChars( "/simple" ) );
  EXPECT_EQ( "s", GetWordBoundaryChars( ":simple" ) );
  EXPECT_EQ( "s", GetWordBoundaryChars( "-simple" ) );
}
Example #2
0
TEST( GetWordBoundaryCharsTest, SimpleCapitalStart ) {
  EXPECT_EQ( "s", GetWordBoundaryChars( "Simple" ) );
}
Example #3
0
TEST( GetWordBoundaryCharsTest, ManyUnderscoreStartAndInMiddle ) {
  EXPECT_EQ( "sf", GetWordBoundaryChars( "___simple__foo" ) );
}
Example #4
0
TEST( GetWordBoundaryCharsTest, ManyUnderscoreStart ) {
  EXPECT_EQ( "s", GetWordBoundaryChars( "___simple" ) );
}
Example #5
0
TEST( GetWordBoundaryCharsTest, AllCapsPunctuationMiddleAndStart ) {
  EXPECT_EQ( "ss", GetWordBoundaryChars( "_SIMPLE_STUFF" ) );
  EXPECT_EQ( "ss", GetWordBoundaryChars( ":SIMPLE.STUFF" ) );
}
Example #6
0
TEST( GetWordBoundaryCharsTest, AllCapsUnderscoreStart ) {
  EXPECT_EQ( "s", GetWordBoundaryChars( "_SIMPLE" ) );
}
Example #7
0
TEST( GetWordBoundaryCharsTest, UppercaseSequenceInMiddleUnderscoreLowercase ) {
  EXPECT_EQ( "ssf", GetWordBoundaryChars( "simpleSTUFF_foo" ) );
}
Example #8
0
TEST( GetWordBoundaryCharsTest, JavaCase ) {
  EXPECT_EQ( "ssf", GetWordBoundaryChars( "simpleStuffFoo" ) );
}
Example #9
0
TEST( GetWordBoundaryCharsTest, SimpleCapitalTwoWordPunctuationMiddle ) {
  EXPECT_EQ( "ss", GetWordBoundaryChars( "Simple_Stuff" ) );
}
Example #10
0
TEST( GetWordBoundaryCharsTest, ManyPunctuationStartAndInMiddle ) {
  EXPECT_EQ( "sf", GetWordBoundaryChars( "___simple__foo" ) );
  EXPECT_EQ( "sf", GetWordBoundaryChars( "./;:simple..foo" ) );
}
Example #11
0
TEST( GetWordBoundaryCharsTest, PunctuationStartAndInMiddle ) {
  EXPECT_EQ( "sf", GetWordBoundaryChars( "_simple_foo" ) );
  EXPECT_EQ( "sf", GetWordBoundaryChars( "/simple.foo" ) );
}
Example #12
0
TEST( GetWordBoundaryCharsTest, ManyPunctuationStart ) {
  EXPECT_EQ( "s", GetWordBoundaryChars( "___simple" ) );
  EXPECT_EQ( "s", GetWordBoundaryChars( ".;/simple" ) );
}
Example #13
0
TEST( GetWordBoundaryCharsTest, PunctuationStartButFirstDigit ) {
  EXPECT_EQ( "", GetWordBoundaryChars( "_1simple" ) );
  EXPECT_EQ( "p", GetWordBoundaryChars( "_1simPle" ) );
}
Example #14
0
TEST( GetWordBoundaryCharsTest, PunctuationInMiddle ) {
  EXPECT_EQ( "sf", GetWordBoundaryChars( "simple_foo" ) );
}
Example #15
0
TEST( GetWordBoundaryCharsTest, SimpleCapitalTwoWord ) {
  EXPECT_EQ( "ss", GetWordBoundaryChars( "SimpleStuff" ) );
}
Example #16
0
TEST( GetWordBoundaryCharsTest, UppercaseSequenceInMiddlePunctuationLowercase ) {
  EXPECT_EQ( "ssf", GetWordBoundaryChars( "simpleSTUFF_foo" ) );
  EXPECT_EQ( "ssf", GetWordBoundaryChars( "simpleSTUFF.foo" ) );
}
Example #17
0
TEST( GetWordBoundaryCharsTest, SimpleCapitalTwoWordUnderscoreMiddle ) {
  EXPECT_EQ( "ss", GetWordBoundaryChars( "Simple_Stuff" ) );
}
Example #18
0
TEST( GetWordBoundaryCharsTest, AllCapsPunctuationStart ) {
  EXPECT_EQ( "s", GetWordBoundaryChars( "_SIMPLE" ) );
  EXPECT_EQ( "s", GetWordBoundaryChars( ".SIMPLE" ) );
}
Example #19
0
TEST( GetWordBoundaryCharsTest, UppercaseSequenceInMiddle ) {
  EXPECT_EQ( "ss", GetWordBoundaryChars( "simpleSTUFFfoo" ) );
}
Example #20
0
TEST( GetWordBoundaryCharsTest, SimpleOneWord ) {
  EXPECT_EQ( "s", GetWordBoundaryChars( "simple" ) );
}
Example #21
0
TEST( GetWordBoundaryCharsTest, AllCapsSimple ) {
  EXPECT_EQ( "s", GetWordBoundaryChars( "SIMPLE" ) );
}
Example #22
0
TEST( GetWordBoundaryCharsTest, UnderscoreInMiddle ) {
  EXPECT_EQ( "sf", GetWordBoundaryChars( "simple_foo" ) );
}
Example #23
0
TEST( GetWordBoundaryCharsTest, AllCapsUnderscoreMiddleAndStart ) {
  EXPECT_EQ( "ss", GetWordBoundaryChars( "_SIMPLE_STUFF" ) );
}
Example #24
0
TEST( GetWordBoundaryCharsTest, AllCapsPunctuationMiddle ) {
  EXPECT_EQ( "ss", GetWordBoundaryChars( "SIMPLE_STUFF" ) );
  EXPECT_EQ( "ss", GetWordBoundaryChars( "SIMPLE/STUFF" ) );
}