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