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