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" ) ); }
TEST( GetWordBoundaryCharsTest, SimpleCapitalStart ) { EXPECT_EQ( "s", GetWordBoundaryChars( "Simple" ) ); }
TEST( GetWordBoundaryCharsTest, ManyUnderscoreStartAndInMiddle ) { EXPECT_EQ( "sf", GetWordBoundaryChars( "___simple__foo" ) ); }
TEST( GetWordBoundaryCharsTest, ManyUnderscoreStart ) { EXPECT_EQ( "s", GetWordBoundaryChars( "___simple" ) ); }
TEST( GetWordBoundaryCharsTest, AllCapsPunctuationMiddleAndStart ) { EXPECT_EQ( "ss", GetWordBoundaryChars( "_SIMPLE_STUFF" ) ); EXPECT_EQ( "ss", GetWordBoundaryChars( ":SIMPLE.STUFF" ) ); }
TEST( GetWordBoundaryCharsTest, AllCapsUnderscoreStart ) { EXPECT_EQ( "s", GetWordBoundaryChars( "_SIMPLE" ) ); }
TEST( GetWordBoundaryCharsTest, UppercaseSequenceInMiddleUnderscoreLowercase ) { EXPECT_EQ( "ssf", GetWordBoundaryChars( "simpleSTUFF_foo" ) ); }
TEST( GetWordBoundaryCharsTest, JavaCase ) { EXPECT_EQ( "ssf", GetWordBoundaryChars( "simpleStuffFoo" ) ); }
TEST( GetWordBoundaryCharsTest, SimpleCapitalTwoWordPunctuationMiddle ) { EXPECT_EQ( "ss", GetWordBoundaryChars( "Simple_Stuff" ) ); }
TEST( GetWordBoundaryCharsTest, ManyPunctuationStartAndInMiddle ) { EXPECT_EQ( "sf", GetWordBoundaryChars( "___simple__foo" ) ); EXPECT_EQ( "sf", GetWordBoundaryChars( "./;:simple..foo" ) ); }
TEST( GetWordBoundaryCharsTest, PunctuationStartAndInMiddle ) { EXPECT_EQ( "sf", GetWordBoundaryChars( "_simple_foo" ) ); EXPECT_EQ( "sf", GetWordBoundaryChars( "/simple.foo" ) ); }
TEST( GetWordBoundaryCharsTest, ManyPunctuationStart ) { EXPECT_EQ( "s", GetWordBoundaryChars( "___simple" ) ); EXPECT_EQ( "s", GetWordBoundaryChars( ".;/simple" ) ); }
TEST( GetWordBoundaryCharsTest, PunctuationStartButFirstDigit ) { EXPECT_EQ( "", GetWordBoundaryChars( "_1simple" ) ); EXPECT_EQ( "p", GetWordBoundaryChars( "_1simPle" ) ); }
TEST( GetWordBoundaryCharsTest, PunctuationInMiddle ) { EXPECT_EQ( "sf", GetWordBoundaryChars( "simple_foo" ) ); }
TEST( GetWordBoundaryCharsTest, SimpleCapitalTwoWord ) { EXPECT_EQ( "ss", GetWordBoundaryChars( "SimpleStuff" ) ); }
TEST( GetWordBoundaryCharsTest, UppercaseSequenceInMiddlePunctuationLowercase ) { EXPECT_EQ( "ssf", GetWordBoundaryChars( "simpleSTUFF_foo" ) ); EXPECT_EQ( "ssf", GetWordBoundaryChars( "simpleSTUFF.foo" ) ); }
TEST( GetWordBoundaryCharsTest, SimpleCapitalTwoWordUnderscoreMiddle ) { EXPECT_EQ( "ss", GetWordBoundaryChars( "Simple_Stuff" ) ); }
TEST( GetWordBoundaryCharsTest, AllCapsPunctuationStart ) { EXPECT_EQ( "s", GetWordBoundaryChars( "_SIMPLE" ) ); EXPECT_EQ( "s", GetWordBoundaryChars( ".SIMPLE" ) ); }
TEST( GetWordBoundaryCharsTest, UppercaseSequenceInMiddle ) { EXPECT_EQ( "ss", GetWordBoundaryChars( "simpleSTUFFfoo" ) ); }
TEST( GetWordBoundaryCharsTest, SimpleOneWord ) { EXPECT_EQ( "s", GetWordBoundaryChars( "simple" ) ); }
TEST( GetWordBoundaryCharsTest, AllCapsSimple ) { EXPECT_EQ( "s", GetWordBoundaryChars( "SIMPLE" ) ); }
TEST( GetWordBoundaryCharsTest, UnderscoreInMiddle ) { EXPECT_EQ( "sf", GetWordBoundaryChars( "simple_foo" ) ); }
TEST( GetWordBoundaryCharsTest, AllCapsUnderscoreMiddleAndStart ) { EXPECT_EQ( "ss", GetWordBoundaryChars( "_SIMPLE_STUFF" ) ); }
TEST( GetWordBoundaryCharsTest, AllCapsPunctuationMiddle ) { EXPECT_EQ( "ss", GetWordBoundaryChars( "SIMPLE_STUFF" ) ); EXPECT_EQ( "ss", GetWordBoundaryChars( "SIMPLE/STUFF" ) ); }