示例#1
0
def EnableTypoCorrection_ReciprocalOthers_test():
    eq_(flags._EnableTypoCorrection(['-x', 'c++', '-fno-spell-checking']),
        ['-x', 'c++', '-fno-spell-checking'])
示例#2
0
def EnableTypoCorrection_Trivial_test():
    eq_(flags._EnableTypoCorrection(['-x', 'c++']),
        ['-x', 'c++', '-fspell-checking'])
示例#3
0
def EnableTypoCorrection_Reciprocal_test():
    eq_(flags._EnableTypoCorrection(['-fno-spell-checking']),
        ['-fno-spell-checking'])
示例#4
0
def EnableTypoCorrection_Empty_test():
    eq_(flags._EnableTypoCorrection([]), ['-fspell-checking'])
示例#5
0
def EnableTypoCorrection_ReciprocalOthers_test():
  eq_( flags._EnableTypoCorrection( [ '-x', 'c++', '-fno-spell-checking' ] ),
                                    [ '-x', 'c++', '-fno-spell-checking' ] )
示例#6
0
def EnableTypoCorrection_Reciprocal_test():
  eq_( flags._EnableTypoCorrection( [ '-fno-spell-checking' ] ),
                                    [ '-fno-spell-checking' ] )
示例#7
0
def EnableTypoCorrection_Trivial_test():
  eq_( flags._EnableTypoCorrection( [ '-x', 'c++' ] ),
                                    [ '-x', 'c++', '-fspell-checking' ] )
示例#8
0
def EnableTypoCorrection_Empty_test():
  eq_( flags._EnableTypoCorrection( [] ), [ '-fspell-checking' ] )