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